[epiphany/wip/exalm/esc: 2/2] find-toolbar: Stop handling Escape key




commit e95fe542ec56de001beca64cf64c39f22584e0c8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Mar 9 01:15:03 2021 +0500

    find-toolbar: Stop handling Escape key
    
    It's already handled by HdySearchBar.

 embed/ephy-find-toolbar.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index ff640b28b..9900dbda9 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -240,18 +240,7 @@ entry_key_press_event_cb (GtkEntry        *entry,
   guint mask = gtk_accelerator_get_default_mod_mask ();
   gboolean handled = FALSE;
 
-  if ((event->state & mask) == 0) {
-    handled = TRUE;
-    switch (event->keyval) {
-      case GDK_KEY_Escape:
-        /* Hide the toolbar when ESC is pressed */
-        ephy_find_toolbar_request_close (toolbar);
-        break;
-      default:
-        handled = FALSE;
-        break;
-    }
-  } else if ((event->state & mask) == GDK_CONTROL_MASK &&
+  if ((event->state & mask) == GDK_CONTROL_MASK &&
              (event->keyval == GDK_KEY_Return ||
               event->keyval == GDK_KEY_KP_Enter ||
               event->keyval == GDK_KEY_ISO_Enter)) {


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