diff --git a/src/dialogs.py b/src/dialogs.py
index 90ccae84a..57ee82f27 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -290,6 +290,10 @@ class Add_new_contact_window:
self.xml.signal_autoconnect(self)
self.window.show_all()
+ def on_add_new_contact_window_key_press_event(self, widget, event):
+ if event.keyval == gtk.keysyms.Escape: # ESCAPE
+ self.window.destroy()
+
def on_cancel_button_clicked(self, widget):
'''When Cancel button is clicked'''
self.window.destroy()
diff --git a/src/gtkgui.glade b/src/gtkgui.glade
index 42d6b5327..2d7e47571 100644
--- a/src/gtkgui.glade
+++ b/src/gtkgui.glade
@@ -1595,6 +1595,7 @@
False
GDK_WINDOW_TYPE_HINT_NORMAL
GDK_GRAVITY_NORTH_WEST
+