keyboard: Discard the added shortcut on Escape

If the user press Escape key after the user have set some shortcut,
don't save the newly set shortcut, and close the dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=778748
This commit is contained in:
Mohammed Sadiq 2017-02-21 10:47:15 +05:30 committed by Georges Basile Stavracas Neto
parent 25c4f82365
commit eeddf497af

View file

@ -9,6 +9,7 @@
<property name="height_request">300</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
<signal name="close" handler="cancel_button_clicked_cb" object="CcKeyboardShortcutEditor" swapped="no" />
<signal name="delete-event" handler="gtk_widget_hide_on_delete" object="CcKeyboardShortcutEditor" swapped="yes"/>
<child internal-child="vbox">
<object class="GtkBox">