mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 9.0.0888: MS-Windows GUI: CTRL-] does not work on Swiss keyboard
Problem: MS-Windows GUI: CTRL-] does not work on Swiss keyboard. Solution: Check the key code and don't consider it as a dead key. (Aedin Louis Xavier, closes #11556)
This commit is contained in:
committed by
Bram Moolenaar
parent
a44c7811ff
commit
f10952e8c0
@@ -2152,16 +2152,25 @@ process_message(void)
|
|||||||
|
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
{
|
{
|
||||||
|
int wm_char = NUL;
|
||||||
|
|
||||||
if (dead_key == DEAD_KEY_SET_DEFAULT
|
if (dead_key == DEAD_KEY_SET_DEFAULT
|
||||||
&& (GetKeyState(VK_CONTROL) & 0x8000)
|
&& (GetKeyState(VK_CONTROL) & 0x8000))
|
||||||
&& ( (vk == 221 && scan_code == 26) // AZERTY CTRL+dead_circumflex
|
{
|
||||||
|| (vk == 220 && scan_code == 41) // QWERTZ CTRL+dead_circumflex
|
if ( // AZERTY CTRL+dead_circumflex
|
||||||
)
|
(vk == 221 && scan_code == 26)
|
||||||
)
|
// QWERTZ CTRL+dead_circumflex
|
||||||
|
|| (vk == 220 && scan_code == 41))
|
||||||
|
wm_char = '[';
|
||||||
|
if ( // QWERTZ CTRL+dead_two-overdots
|
||||||
|
(vk == 192 && scan_code == 27))
|
||||||
|
wm_char = ']';
|
||||||
|
}
|
||||||
|
if (wm_char != NUL)
|
||||||
{
|
{
|
||||||
// post WM_CHAR='[' - which will be interpreted with CTRL
|
// post WM_CHAR='[' - which will be interpreted with CTRL
|
||||||
// still hold as ESC
|
// still hold as ESC
|
||||||
PostMessageW(msg.hwnd, WM_CHAR, '[', msg.lParam);
|
PostMessageW(msg.hwnd, WM_CHAR, wm_char, msg.lParam);
|
||||||
// ask _OnChar() to not touch this state, wait for next key
|
// ask _OnChar() to not touch this state, wait for next key
|
||||||
// press and maintain knowledge that we are "poisoned" with
|
// press and maintain knowledge that we are "poisoned" with
|
||||||
// "dead state"
|
// "dead state"
|
||||||
|
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
888,
|
||||||
/**/
|
/**/
|
||||||
887,
|
887,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user