diff --git a/scripts/FeedController.js b/scripts/FeedController.js index f6de87a..ab08f79 100644 --- a/scripts/FeedController.js +++ b/scripts/FeedController.js @@ -55,6 +55,13 @@ angular.module('flashy.FeedController', ['ui.router']). console.log('refresh fail'); }); } + + $(document).keydown(function(e) { + var keyed = e.which; + if (keyed == 67) { // "c" or "C" for compose + $('#newCard').openModal(); + } + }); $scope.flashcard = 'hi i am a flashcard. I need to be really long and awesome I ain\'t ' + diff --git a/styles/flashy.css b/styles/flashy.css index ec7fcb7..2527b42 100644 --- a/styles/flashy.css +++ b/styles/flashy.css @@ -231,3 +231,11 @@ html { #logo-container{ margin-bottom: 18px; } + +#lean-overlay { + display: none !important; +} + +#sidenav-overlay { + background-color: rgba(0,0,0,0) !important; +}