diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index eb0c1705..6a41ecd5 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -561,7 +561,9 @@ var KeyboardActions = actions.Actions({ // XXX argument #3 is not yet used (see: lib/keyboard.js)... getKeyboardModes: ['- Interface/', function(){ - return keyboard.getApplicableModes(this.keyboard, null, this.ribbons.viewer) }], + return this.__keyboard_event_source ? + keyboard.getApplicableModes(this.keyboard, null, this.__keyboard_event_source) + : [] }], // XXX need to pre-process the docs... // - remove the path component...