[gtksourceview/wip/chergert/vim: 25/363] fix how we get modifier state
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 25/363] fix how we get modifier state
- Date: Mon, 8 Nov 2021 19:53:44 +0000 (UTC)
commit 2d8af4f0eba6218fd960894a51a4d1ee40700c78
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]