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)
This commit is contained in:
Steve Howell
2014-03-12 10:02:14 -04:00
parent da66220524
commit 63097f32e5

View File

@@ -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