[Lazarus] Gtk2 focus problem with shortcut keys
Micha Nelissen
micha at neli.hopto.org
Sat Oct 18 11:23:54 CEST 2008
Brad Campbell wrote:
> G'day all,
>
> Here is another one.
>
> Create a new form and place a TMainMenu, TEdit and TButton on the form.
>
> Create a File/Quit menu and assign the quit menu the shortcut ctrl+W.
[..]
> Now, when the TEdit has focus, the shortcut does not work. The only way to get it to work is click
> the button (to focus it). Now you can close the form with ctrl-W.
Probably the Gtk2/TEdit implementation handles Ctrl+W specially. It
usually means erase previous word before cursor.
Micha
More information about the Lazarus
mailing list