]> source.dussan.org Git - nextcloud-server.git/commitdiff
disable keyboard shortcuts as temp fix
authorTom Needham <needham.thomas@gmail.com>
Mon, 23 Jan 2012 20:59:37 +0000 (20:59 +0000)
committerTom Needham <needham.thomas@gmail.com>
Mon, 23 Jan 2012 20:59:37 +0000 (20:59 +0000)
apps/files_texteditor/js/editor.js

index cb1af3dd6dbeefd38a09199a68610fff88b7f1c1..6e154bedb9ca7dd7597c6d27b2daf81f58307af0 100644 (file)
@@ -234,6 +234,7 @@ function hideFileEditor(){
 // Keyboard Shortcuts
 var ctrlBtn = false;
 
+// TODO fix detection of ctrl keyup
 // returns true if ctrl+s or cmd+s is being pressed
 function checkForSaveKeyPress(e){
        if(e.which == 17 || e.which == 91) ctrlBtn=true;
@@ -276,5 +277,5 @@ $(document).ready(function(){
        bindControlEvents();
        
        // Binds the save keyboard shortcut events
-       $(document).unbind('keydown').bind('keydown',checkForSaveKeyPress);
+       //$(document).unbind('keydown').bind('keydown',checkForSaveKeyPress);
 });