Skip to content

Commit 83a19c5

Browse files
committed
patch 9.0.0453: on an AZERTY keyboard digit keys get the shift modifier
Problem: On an AZERTY keyboard digit keys get the shift modifier. Solution: Remove the shift modifier from digit keys. (closes #11109)
1 parent 6eda17d commit 83a19c5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/misc2.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,8 @@ may_adjust_key_for_ctrl(int modifiers, int key)
15401540
* When Ctrl is also used <C-H> and <C-S-H> are different, but <C-S-{> should
15411541
* be <C-{>. Same for <C-S-}> and <C-S-|>.
15421542
* Also for <A-S-a> and <M-S-a>.
1543-
* This includes all printable ASCII characters except numbers and a-z.
1543+
* This includes all printable ASCII characters except a-z.
1544+
* Digits are included because with AZERTY the Shift key is used to get them.
15441545
*/
15451546
int
15461547
may_remove_shift_modifier(int modifiers, int key)
@@ -1550,6 +1551,7 @@ may_remove_shift_modifier(int modifiers, int key)
15501551
|| modifiers == (MOD_MASK_SHIFT | MOD_MASK_META))
15511552
&& ((key >= '!' && key <= '/')
15521553
|| (key >= ':' && key <= 'Z')
1554+
|| vim_isdigit(key)
15531555
|| (key >= '[' && key <= '`')
15541556
|| (key >= '{' && key <= '~')))
15551557
return modifiers & ~MOD_MASK_SHIFT;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ static char *(features[]) =
703703

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
453,
706708
/**/
707709
452,
708710
/**/

0 commit comments

Comments
 (0)