On 30/10/12 07:32, Jürgen Krämer wrote:

Hi,

Jürgen Krämer wrote:

Christian Brabandt wrote:
[...]

It is for a German layout usually. But I can't reproduce it. And
possibly also compiler or architecture (32/64bit) dependent.

yesterday, with the example given by Alex I could reproduce it on every
try. Today I tried to construct another example, but it worked only
randomly -- sometimes pressing the caret (or apostrophe or backtick) key
followed by one or more presses of the space bar produced the correct
character immediately, sometimes it was postponed until the next
non-space key was pressed. When it was a letter that could be combined
with the respective accent (like "a" or "e") this was done, in other
cases like "m" or "," the caret and the letter were inserted separately.

m or , don't accept a circumflex or acute accent IIUC. OTOH, c g h j s can have a circumflex in Esperanto, and IIRC w is a vowel in Welsh and can accept accents.


I had a look at the source code in gui_w48.c and gui_w32.c, but I could
not determine where the dead letter key and the following key are
combined into one character and wether this actually has to be done by
the application or if it's done by Windows.

the application ought to be able to accept characters from the keyboard, e.g. as text input, without even knowing (or caring) whether or not the current keyboard layout includes dead keys.


additional observation: whenever the caret is not inserted after pressing
the space bar and I use the mouse to switch to another program that allows
input, pressing the space bar there results in the caret being inserted.
It seems Gvim does not remove the dead letters from the input queue at the
correct moment.

When gvim does not insert a caret after pressing the dead key then the space bar, what happens if you press the space bar again? (Does the caret appear?) Or if you press some vowel key instead? (Does it insert an accented vowel, e.g. ê if you pressed the e key?) — Another expreiment: if you press the space bar and some letter key in rapid alternation, e.g. x x x x x x x x x x x x x x x x x x x x x , are all letters separated from each other by one space? (Though when I tried, using one hand for each, I noticed that my hand didn't always hit the keyboard in strict alternation.)


A similar behavior can be seen if, e.g., in Notepad one presses the caret
key, immediately switches to another program by using the mouse, and then
presses the space bar: the caret is inserted in the other program, but I
guess this is to be expected.

jkr


Sounds like a Windows bug in the keyboard driver to me (not properly combining the dead-key event with the keypress event for the following spacing key, at least in some circumstances, perhaps conditional on a call to some "is there a key waiting?" function not used by Notepad), but I could be wrong.

Best regards,
Tony.
--
Forms follow function, and often obliterate it.

--
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

Raspunde prin e-mail lui