[Freeipa-devel] [PATCH] 545 webui: Don't act on keyboard events which originated in, different dialog

Petr Vobornik pvoborni at redhat.com
Tue Feb 25 13:20:11 UTC 2014


Fixes issue when:
1. 2 dialogs are opened
2. top dialog's close button is focused
3. user presses enter to execute 'close' action
4. dialog is immediately closed (enter key is still pressed)
5. second dialog automatically receives focus (it's top dialog now)
6. user releases the key
7. second dialog reacts to keyup event - which is by default 
confirmation mixin's confirm event
8. UNDESIRED behavior occurs

Now confirmation mixin remembers which keys were pressed and released 
and reacts only to those which originated there.

https://fedorahosted.org/freeipa/ticket/4098
-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0545-webui-Don-t-act-on-keyboard-events-which-originated-.patch
Type: text/x-patch
Size: 3986 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140225/d4d2e706/attachment.bin>


More information about the Freeipa-devel mailing list