diff --git a/index.html b/index.html
index 2fb5796..6af50c3 100755
--- a/index.html
+++ b/index.html
@@ -372,13 +372,6 @@ function setupEditor(){
}
-function clearEditor(){
- $('.current-page-indicator').children().remove()
- $('[contenteditable]').attr({contenteditable:"false"})
- MagazineScroller.start()
-}
-
-
$(document).ready(function(){
// general window behavior...
@@ -394,6 +387,7 @@ $(document).ready(function(){
//ignore: '*'
Esc: function(){
$(':focus').blur()
+ return false
},
},
@@ -401,11 +395,9 @@ $(document).ready(function(){
title: 'Global',
doc: '',
- /*
Esc: function(){
toggleEditor('?') == 'on' && toggleEditor('off')
},
- */
Home: firstPage,
End: lastPage,
diff --git a/lib/keyboard.js b/lib/keyboard.js
index 6ffe756..43dd6c1 100755
--- a/lib/keyboard.js
+++ b/lib/keyboard.js
@@ -147,6 +147,11 @@ function makeKeyboardHandler(keybindings, unhandled){
} else {
// simple callback...
res = handler()
+ // if the handler explicitly returned false break out...
+ if(res === false){
+ // XXX is this corrent???
+ return KEYBOARD_HANDLER_PROPAGATE ? res : null
+ }
did_handling = true
continue
}