[Freeipa-devel] [PATCH] 259 Combobox keyboard support

Petr Vobornik pvoborni at redhat.com
Mon Feb 18 16:31:45 UTC 2013


Combobox can be controlled just by using keyboard.

When value list is closed, user can:
   * use UP and DOWN error to open list, it will focus the list and
     select previous/next value
   * when CB is non-editable, user can start typing, first character 
will open list, second will be entered into search input. Note: I wanted 
to copy the first char to the search box as well, but I did not figure 
out reliable method for converting keycode to char for non ASCII 
keyboard layouts
   * ESCAPE, ENTER, TAB keys are handled to allow keyboard operations in 
a container

When value list is opened:
   * CB tries to keep focus on either search input or a select
   * when focus is lost, the value list is closed. So  user can click 
anywhere on a page to close it - two comboboxes can't be opened on the 
same time
   * hitting TAB key switches between search and select
   * if CB is not searchable, hitting TAB will close the value list and 
select input textbox
   * hitting ESCAPE on will close the value list
   * hitting ENTER on search input will invoke search operation
   * hitting ENTER on select will close the value list
   * hitting UP/DOWN arrows will select previous/next values

Additional modifications:
   * opening arrow and search button were made non-focusable. It fixes 
the 'wrong focus area' bug and simplifies keyboard usage. It doesn't 
affect mouse usage.

https://fedorahosted.org/freeipa/ticket/3324
-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0259-Combobox-keyboard-support.patch
Type: text/x-patch
Size: 12071 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130218/89d5ce3d/attachment.bin>


More information about the Freeipa-devel mailing list