Allow easy switching from the V/O filter textbox to the option list.

master
Pacman Ghost 6 years ago
parent 7ab1c51fa9
commit 54303a4c01
  1. 9
      vasl_templates/webapp/static/vo.js

@ -37,6 +37,15 @@ function add_vo( vo_type, player_no )
minHeight: 300,
create: function() {
init_dialog( $(this), "OK", false ) ;
// trap down arrow, set focus to the V/O list
$("#select-vo input[type='text']").keydown( function(evt) {
if ( evt.keyCode == 40 ) {
if ( $listbox.find( ":selected" ).length === 0 )
$listbox.find( "option:eq(0)" ).prop( "selected", true ) ;
$listbox.focus() ;
evt.preventDefault() ;
}
} ) ;
},
open: function() {
// initialize

Loading…
Cancel
Save