From 89eb03aff0b50b00555aee1a886e4cb4106229e7 Mon Sep 17 00:00:00 2001 From: cpradio Date: Fri, 29 Aug 2014 22:18:03 -0400 Subject: [PATCH] FIX: Support J/K bindings on German Keyboards J/K are not supported on German keyboards, shift+j and shift+k have been added to remedy this. https://meta.discourse.org/t/keyboard-shortcuts-for-next-previous-section-do-not-work-with-german-keyboard-layout/18902 --- app/assets/javascripts/discourse/lib/keyboard_shortcuts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js index 619b81300f3..3f44bf72d69 100644 --- a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js +++ b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js @@ -47,7 +47,9 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ 'home': 'goToFirstPost', '#': 'toggleProgress', 'end': 'goToLastPost', + 'shift+j': 'selectDown', 'j': 'selectDown', + 'shift+k': 'selectUp', 'k': 'selectUp', 'u': 'goBack', '`': 'nextSection',