From 45661654443c5863c03aa95e829b5084218b1737 Mon Sep 17 00:00:00 2001 From: rnlee0054 Date: Tue, 19 May 2015 19:55:11 -0700 Subject: [PATCH] Hotkeyed compose new card to 'c' press and deleted modal/sidenav overlays --- scripts/FeedController.js | 7 +++++++ styles/flashy.css | 8 ++++++++ 2 files changed, 15 insertions(+) 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; +} -- 1.9.1