Re: [gtk-list] Re: Widget user interface comments [GtkEntry]



> Oki but why not have keybindings for the buttons:
> 
> OK <CONTROL/ALTERNATE> + "O"
> Cancel <CONTROL/ALTERNATE> + "C"
> 
> Why not implement this in GTK when creating a button gtk_new_button_with_label("OK",GDK_CONTROL,"O");(or something
> similar)
> 


Yes. This is a good idea, and this is implemented in all "good" MacOS
apps.  However, OK and Cancel are somewhat special buttons, I think
"Return/Enter" and "Esc" are already established keybindings for these
buttons.  But I'm not sure they're implemented in every situation in gtk
by default.

Also, on MacOS, when the Return key is in use by a text widget, the
enter key on the numeric keypad always continues to activate the default
button (usually "OK").

~p@



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]