Commit 45661654443c5863c03aa95e829b5084218b1737
1 parent
6a170e7a1c
Exists in
master
and in
1 other branch
Hotkeyed compose new card to 'c' press and deleted modal/sidenav overlays
Showing 2 changed files with 15 additions and 0 deletions Side-by-side Diff
scripts/FeedController.js
View file @
4566165
... | ... | @@ -55,6 +55,13 @@ |
55 | 55 | console.log('refresh fail'); |
56 | 56 | }); |
57 | 57 | } |
58 | + | |
59 | + $(document).keydown(function(e) { | |
60 | + var keyed = e.which; | |
61 | + if (keyed == 67) { // "c" or "C" for compose | |
62 | + $('#newCard').openModal(); | |
63 | + } | |
64 | + }); | |
58 | 65 | |
59 | 66 | |
60 | 67 | $scope.flashcard = 'hi i am a flashcard. I need to be really long and awesome I ain\'t ' + |