[gtksourceview/wip/chergert/vim: 31/73] fix how we get modifier state




commit f48323e0c2196314992d6ac30aa363c1a3f794b4
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 22 10:56:36 2021 -0700

    fix how we get modifier state

 gtksourceview/vim/gtk-source-vim-state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-state.c b/gtksourceview/vim/gtk-source-vim-state.c
index 43e4761c..274db047 100644
--- a/gtksourceview/vim/gtk-source-vim-state.c
+++ b/gtksourceview/vim/gtk-source-vim-state.c
@@ -113,7 +113,7 @@ gtk_source_vim_state_real_handle_event (GtkSourceVimState *self,
 
                keyval = gdk_key_event_get_keyval (event);
                keycode = gdk_key_event_get_keycode (event);
-               mods = gdk_key_event_get_consumed_modifiers (event)
+               mods = gdk_event_get_modifier_state (event)
                     & gtk_accelerator_get_default_mod_mask ();
                keyval_to_string (keyval, mods, string);
 


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