Commit 45661654443c5863c03aa95e829b5084218b1737

Authored by Rachel Lee
1 parent 6a170e7a1c

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 ' +
styles/flashy.css View file @ 4566165
... ... @@ -231,4 +231,12 @@
231 231 #logo-container{
232 232 margin-bottom: 18px;
233 233 }
  234 +
  235 +#lean-overlay {
  236 + display: none !important;
  237 +}
  238 +
  239 +#sidenav-overlay {
  240 + background-color: rgba(0,0,0,0) !important;
  241 +}