remove fullscreen shortcut
This commit is contained in:
@@ -15,25 +15,6 @@ angular.module('app.frontend')
|
|||||||
bindToController: true,
|
bindToController: true,
|
||||||
|
|
||||||
link:function(scope, elem, attrs, ctrl) {
|
link:function(scope, elem, attrs, ctrl) {
|
||||||
|
|
||||||
var handler = function(event) {
|
|
||||||
if (event.ctrlKey || event.metaKey) {
|
|
||||||
switch (String.fromCharCode(event.which).toLowerCase()) {
|
|
||||||
case 'o':
|
|
||||||
event.preventDefault();
|
|
||||||
$timeout(function(){
|
|
||||||
ctrl.toggleFullScreen();
|
|
||||||
})
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
window.addEventListener('keydown', handler);
|
|
||||||
scope.$on('$destroy', function(){
|
|
||||||
window.removeEventListener('keydown', handler);
|
|
||||||
})
|
|
||||||
|
|
||||||
scope.$watch('ctrl.note', function(note, oldNote){
|
scope.$watch('ctrl.note', function(note, oldNote){
|
||||||
if(note) {
|
if(note) {
|
||||||
ctrl.setNote(note, oldNote);
|
ctrl.setNote(note, oldNote);
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark{"ng-if" => "ctrl.showMenu"}
|
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark{"ng-if" => "ctrl.showMenu"}
|
||||||
%li{"ng-click" => "ctrl.selectedMenuItem(); ctrl.toggleFullScreen()"}
|
%li{"ng-click" => "ctrl.selectedMenuItem(); ctrl.toggleFullScreen()"}
|
||||||
.text Toggle Fullscreen
|
.text Toggle Fullscreen
|
||||||
.shortcut Cmd + O
|
|
||||||
%li{"ng-click" => "ctrl.deleteNote()"}
|
%li{"ng-click" => "ctrl.deleteNote()"}
|
||||||
.text Delete
|
.text Delete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user