Comment #7 on issue 250 by [email protected]: Random US-International
keyboard layout (dead keys) support
http://code.google.com/p/vim/issues/detail?id=250
I came up with a much nicer solution that actually addresses the underlying
issue and that decreases Vim's size^^
Besides this bug, dead key handling was not behaving like in other Windows
application.
I spent some time understanding
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646267(v=vs.85).aspx#_win32_Dead_Character_Messages
So the solution is to reset dead_key as soon as any WM_CHAR is received and
to _NOT_ do anything special if dead_key is set and the key being pressed
is either VK_SPACE, VK_BACK or VK_ESCAPE in which case we just let WIndows
generate its WM_CHAR: just one will be generated if it's VK_SPACE being
pressed or two will be if it's either VK_BACK or VK_ESCPAE (the dead key +
the VK_BACK or VK_ESCPAE)
My patch includes a detailed comment on the logic used
The fix is very simple and feels just right :)
Attachments:
0001-Fix-dead-key-handling-on-Windows-non-standard-behavi.patch 2.0 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.