diff options
| author | fiaxh <git@lightrise.org> | 2025-04-19 11:07:33 +0200 |
|---|---|---|
| committer | fiaxh <git@lightrise.org> | 2025-12-19 12:14:28 +0100 |
| commit | b4697cd2637453a7ece57d8e38edd05d36d9ffae (patch) | |
| tree | 745deab1a2199f4b06e23d02c86a082e49c7d66b /main/src | |
| parent | 71c385f27d07ae79c35e1a7ff030c7a50308926a (diff) | |
Exclude more control keys from forwarding to text input
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/ui/conversation_view_controller.vala | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index ad2caa15..08f11750 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -252,13 +252,16 @@ public class ConversationViewController : Object { return false; } - // Don't forward / change focus on Control / Alt + // Don't forward / change focus on control keys if (keyval == Gdk.Key.Control_L || keyval == Gdk.Key.Control_R || - keyval == Gdk.Key.Alt_L || keyval == Gdk.Key.Alt_R) { + keyval == Gdk.Key.Alt_L || keyval == Gdk.Key.Alt_R || + keyval == Gdk.Key.Meta_L || keyval == Gdk.Key.Meta_R || + keyval == Gdk.Key.Super_L || keyval == Gdk.Key.Super_R) { return false; } - // Don't forward / change focus on Control + ... - if ((state & ModifierType.CONTROL_MASK) > 0) { + // Don't forward / change focus on keyboard shortcuts (which include control keys) + if ((state & (ModifierType.CONTROL_MASK | ModifierType.ALT_MASK | + ModifierType.META_MASK | ModifierType.SUPER_MASK)) > 0) { return false; } |
