Make the custom keybinding UI smoother
These changes were proposed in bug 580792: - Make the apply button the default - Don't let the cancel button grab the default - Make both entries activate the default widget - Grab the focus to the first entry when presenting the dialog
This commit is contained in:
parent
4864d99794
commit
59380c29e4
2 changed files with 5 additions and 2 deletions
|
@ -1376,6 +1376,7 @@ edit_custom_shortcut (KeyEntry *key)
|
|||
|
||||
gtk_entry_set_text (GTK_ENTRY (custom_shortcut_name_entry), key->description ? key->description : "");
|
||||
gtk_widget_set_sensitive (custom_shortcut_name_entry, key->desc_editable);
|
||||
gtk_widget_grab_focus (custom_shortcut_name_entry);
|
||||
gtk_entry_set_text (GTK_ENTRY (custom_shortcut_command_entry), key->command ? key->command : "");
|
||||
gtk_widget_set_sensitive (custom_shortcut_command_entry, key->cmd_editable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue