bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25005] windows, cannot type certain characters


From: Fred Kiefer
Subject: [bug #25005] windows, cannot type certain characters
Date: Tue, 09 Dec 2008 21:08:54 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko) SUSE

Follow-up Comment #1, bug #25005 (project gnustep):

The problem here is that we don't use TranslateMessage() in the message loop,
that way we only get the raw key up and down events, not that translated char
events. But if we change to that we have no way of handling non-character key
events correctly. What we need is some sort of TranslateMessage() replacement
that would just result in the characters for the key event, sadly I don't know
if anything like this exists at all and would also not know how to write it.

I had a deeper look into what Windows offers here and the function
ToUnicode() that we are using is almost the best to do the key down message to
string conversion. The only better solution would be ToUnicodeEx() which
allows to hand in a keyboard layout as well. Could you please test if this
makes any difference for you, if it does I will update the code.

You will need to change the line

result = ToUnicode(wParam, scan, keyState, unicode, 5, 0);

inot something like

result = ToUnicodeEx(wParam, scan, keyState, unicode, 5, 0,
GetKeyboardLayout(0));

But I expect this not to change anything.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25005>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]