Philipp Hörist pushed to branch master at gajim / gajim


Commits:
4a82f16f by Philipp Hörist at 2023-12-05T19:21:26+01:00
cfix: Main: Add comment and lower log level

- - - - -
21606943 by Philipp Hörist at 2023-12-05T19:24:22+01:00
fix: MessageInput: Don’t shift focs when pressing SHIFT

Fixes #11715

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -256,17 +256,24 @@ def _on_key_press_event(
         _window: MainWindow,
         event: Gdk.EventKey
     ) -> bool:
+
+        # event.get_state() behaves different on Linux and Windows.
+        # On Linux its not set in the case that only a modifier key
+        # is pressed.
+
         # Filter out modifier not used for shortcuts like Numlock (MOD2)
         modifier = event.get_state() & Gtk.accelerator_get_default_mod_mask()
         accel_name = Gtk.accelerator_name(event.keyval, modifier)
 
-        log.warning('Captured key pressed: %s', accel_name)
+        log.info('Captured key pressed: %s', accel_name)
 
         if event.keyval in (
             Gdk.KEY_Control_L,
             Gdk.KEY_Control_R,
             Gdk.KEY_Alt_L,
             Gdk.KEY_Alt_R,
+            Gdk.KEY_Shift_L,
+            Gdk.KEY_Shift_R,
         ):
             return False
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/25466559bd811c15626714cc69928fabf0b241d4...21606943cc824d3503cbb547c30b22bae68f135f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/25466559bd811c15626714cc69928fabf0b241d4...21606943cc824d3503cbb547c30b22bae68f135f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to