|
|
Re: Del-accelerator conflicts with del-"action" in text field [message #778625 is a reply to message #778615] |
Fri, 13 January 2012 15:03 |
Thomas Singer Messages: 75 Registered: July 2009 |
Member |
|
|
Thank you for your feed-back.
Lakshmi Shanmugam wrote on Fri, 13 January 2012 09:14I think the existing behavior is as expected.
I would not expect it. I would expect that the focused component could handle the key first, then all parent controls and if it was not processed, then the accelerator would be used. At least that's how Swing did it.
Lakshmi Shanmugam wrote on Fri, 13 January 2012 09:14To prevent the menuitem from being selected, you could disable it when the focus is in the input field.
That would be VERY hard in our application, because the menu item (aka its belonging action) does not (and should not) know anything about input fields or a focused control.
Lakshmi Shanmugam wrote on Fri, 13 January 2012 09:14But, in this case, since the delete action is valid in the input field, you could probably implement a delete action for the input field and call it on menu item's selection.
The delete key was just a sample. The user of our application is free to change the accelerators to their needs. Hence similar conflicts may happen for any key which is used by input fields.
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.61972 seconds