[epiphany/wip/exalm/keys] window: Block ctrl+home/end and ctrl+shift+home/end




commit 9a4cd3b3675608a96977fcab7539febd0e898f37
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Mar 24 17:54:34 2021 +0500

    window: Block ctrl+home/end and ctrl+shift+home/end
    
    These keys are useful for webpages, we shouldn't override them. Restore the
    3.38 behavior here.
    
    Fixes https://gitlab.gnome.org/GNOME/epiphany/-/issues/1482

 src/ephy-window.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 1b5c93453..67fdf2266 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -627,10 +627,6 @@ ephy_window_should_view_receive_key_press_event (EphyWindow  *window,
            keyval != GDK_KEY_KP_Page_Up &&   /* Previous Tab */
            keyval != GDK_KEY_Page_Down &&    /* Next Tab */
            keyval != GDK_KEY_KP_Page_Down && /* Next Tab */
-           keyval != GDK_KEY_Home &&         /* First Tab */
-           keyval != GDK_KEY_KP_Home &&      /* First Tab */
-           keyval != GDK_KEY_End &&          /* Last Tab */
-           keyval != GDK_KEY_KP_End &&       /* Last Tab */
            keyval != GDK_KEY_Tab &&          /* Next Tab */
            keyval != GDK_KEY_KP_Tab &&       /* Next Tab */
            keyval != GDK_KEY_ISO_Left_Tab;   /* Previous Tab (Shift+Tab -> ISO Left Tab) */
@@ -640,11 +636,7 @@ ephy_window_should_view_receive_key_press_event (EphyWindow  *window,
            keyval != GDK_KEY_Page_Up &&      /* Move Tab Left */
            keyval != GDK_KEY_KP_Page_Up &&   /* Move Tab Left */
            keyval != GDK_KEY_Page_Down &&    /* Move Tab Right */
-           keyval != GDK_KEY_KP_Page_Down && /* Move Tab Right */
-           keyval != GDK_KEY_Home &&         /* First Tab */
-           keyval != GDK_KEY_KP_Home &&      /* First Tab */
-           keyval != GDK_KEY_End &&          /* Last Tab */
-           keyval != GDK_KEY_KP_End;         /* Last Tab */
+           keyval != GDK_KEY_KP_Page_Down;   /* Move Tab Right */
 
   if ((event->state & state_mask) == GDK_MOD1_MASK)
     return keyval != GDK_KEY_Left &&      /* Back */


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