Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Sun, 07 May 2023 20:37:14 UTC
Commit: ca117fcff88d7332ae1b16585f446a16d999bc52
https://github.com/geany/geany-plugins/commit/ca117fcff88d7332ae1b16585f446…
Log Message:
-----------
Merge pull request #1141 from techee/numlock_fix
vimode: fix escape not working when numlock is on
Modified Paths:
--------------
vimode/src/keypress.c
Modified: vimode/src/keypress.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -26,7 +26,7 @@ KeyPress *kp_from_event_key(GdkEventKey *ev)
KeyPress *kp;
/* ignore keypresses containing Alt and Command on macOS - no Vim command uses them */
- if (ev->state & (GDK_MOD1_MASK | GDK_MOD2_MASK))
+ if (ev->state & (GDK_MOD1_MASK | GDK_META_MASK))
return NULL;
switch (ev->keyval)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Sun, 07 May 2023 19:05:17 UTC
Commit: 20a0343120e7cee1366d1cd74c14d53eb9d62f7c
https://github.com/geany/geany-plugins/commit/20a0343120e7cee1366d1cd74c14d…
Log Message:
-----------
vimode: fix escape not working when numlock is on
It seems that GDK_MOD2_MASK isn't the right modifier to check for
command pressed - its mapping is platform-specific and while this works
on macOS, it has undesirable side-effects on linux. Use GDK_META_MASK
instead which based on my testing seems to do the right thing both on
macOS and linux.
Modified Paths:
--------------
vimode/src/keypress.c
Modified: vimode/src/keypress.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -26,7 +26,7 @@ KeyPress *kp_from_event_key(GdkEventKey *ev)
KeyPress *kp;
/* ignore keypresses containing Alt and Command on macOS - no Vim command uses them */
- if (ev->state & (GDK_MOD1_MASK | GDK_MOD2_MASK))
+ if (ev->state & (GDK_MOD1_MASK | GDK_META_MASK))
return NULL;
switch (ev->keyval)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Sun, 07 May 2023 19:02:47 UTC
Commit: c4ea3105cd8b7aa2a37e095e5ddb3e9a62bcaf17
https://github.com/geany/geany-plugins/commit/c4ea3105cd8b7aa2a37e095e5ddb3…
Log Message:
-----------
vimode: Set default height of excmd popup to a small number
On macOS there seems to be some bigger default height so the excmd popup
is too tall. When default-height is set to 1, it is automatically resized
to the height of the text entry it contains and has correct size on both
linux and macOS.
Modified Paths:
--------------
vimode/src/excmd-prompt.c
Modified: vimode/src/excmd-prompt.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -225,6 +225,7 @@ void ex_prompt_init(GtkWidget *parent_window, CmdContext *c)
prompt = g_object_new(GTK_TYPE_WINDOW,
"decorated", FALSE,
"default-width", PROMPT_WIDTH,
+ "default-height", 1,
"transient-for", parent_window,
"window-position", GTK_WIN_POS_CENTER_ON_PARENT,
"type-hint", GDK_WINDOW_TYPE_HINT_DIALOG,
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).