From 63097f32e50ce756fb952e60f32a51b0914d770c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 12 Mar 2014 10:02:14 -0400 Subject: [PATCH] Let arrow keys do the right thing for select widgets. This helps the edit form in particular, when you change a topic and need to select the propagation option. (imported from commit c9dd1e62cd9e0b2142855685f04baa06eecf7226) --- static/js/hotkey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/hotkey.js b/static/js/hotkey.js index 5989b615dd..1363c437d0 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -180,8 +180,8 @@ function process_hotkey(e) { } } - // Process hotkeys specially when in an input, textarea, or send button - if ($('input:focus,textarea:focus,#compose-send-button:focus').length > 0) { + // Process hotkeys specially when in an input, select, textarea, or send button + if ($('input:focus,select:focus,textarea:focus,#compose-send-button:focus').length > 0) { if (event_name === 'escape') { // If one of our typeaheads is open, do nothing so that the Esc // will go to close it