forked from aniani/vim
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)
This commit is contained in:
parent
6eda17d881
commit
83a19c5fda
@ -1540,7 +1540,8 @@ may_adjust_key_for_ctrl(int modifiers, int key)
|
|||||||
* When Ctrl is also used <C-H> and <C-S-H> are different, but <C-S-{> should
|
* When Ctrl is also used <C-H> and <C-S-H> are different, but <C-S-{> should
|
||||||
* be <C-{>. Same for <C-S-}> and <C-S-|>.
|
* be <C-{>. Same for <C-S-}> and <C-S-|>.
|
||||||
* Also for <A-S-a> and <M-S-a>.
|
* Also for <A-S-a> and <M-S-a>.
|
||||||
* This includes all printable ASCII characters except numbers and a-z.
|
* This includes all printable ASCII characters except a-z.
|
||||||
|
* Digits are included because with AZERTY the Shift key is used to get them.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
may_remove_shift_modifier(int modifiers, int key)
|
may_remove_shift_modifier(int modifiers, int key)
|
||||||
@ -1550,6 +1551,7 @@ may_remove_shift_modifier(int modifiers, int key)
|
|||||||
|| modifiers == (MOD_MASK_SHIFT | MOD_MASK_META))
|
|| modifiers == (MOD_MASK_SHIFT | MOD_MASK_META))
|
||||||
&& ((key >= '!' && key <= '/')
|
&& ((key >= '!' && key <= '/')
|
||||||
|| (key >= ':' && key <= 'Z')
|
|| (key >= ':' && key <= 'Z')
|
||||||
|
|| vim_isdigit(key)
|
||||||
|| (key >= '[' && key <= '`')
|
|| (key >= '[' && key <= '`')
|
||||||
|| (key >= '{' && key <= '~')))
|
|| (key >= '{' && key <= '~')))
|
||||||
return modifiers & ~MOD_MASK_SHIFT;
|
return modifiers & ~MOD_MASK_SHIFT;
|
||||||
|
@ -703,6 +703,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
453,
|
||||||
/**/
|
/**/
|
||||||
452,
|
452,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user