From 7b2951cb93be477fb7ce7adfc4066e7486d02a6b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 25 Aug 2015 15:30:23 -0700 Subject: [PATCH] Disable Alt+Number and Alt+Arrow in text fields to fix conflict with Alt+NumPad character input. --- src/Miscellaneous/Keybinds.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 82122f4a2..9c686fd85 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -20,7 +20,7 @@ Keybinds = return unless key = Keybinds.keyCode e {target} = e if target.nodeName in ['INPUT', 'TEXTAREA'] - return unless /(Esc|Alt|Ctrl|Meta|Shift\+\w{2,})/.test key + return unless /(Esc|Alt|Ctrl|Meta|Shift\+\w{2,})/.test(key) and not /^Alt\+(\d|Up|Down|Left|Right)$/.test(key) unless ( g.VIEW not in ['index', 'thread'] or g.VIEW is 'index' and Conf['JSON Navigation'] and Conf['Index Mode'] is 'catalog' or