Opened 14 years ago
Closed 14 years ago
#165 closed defect (fixed)
Entry input fields in Webkit don't accept some characters
Reported by: | Silvan Scherrer | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Qt Enhanced |
Component: | General | Version: | 4.6.2 |
Severity: | low | Keywords: | |
Cc: |
Description
in apps using the WebKit it's not possible to enter some characters.
how to reproduce:
open the Qt Demo Browser and to to www.google.com
now in the searchfield enter the character @
this character is not visible
tested on a system with a swissgerman keyboard layout and lang set to de_CH. i also tryed lang en_US but still the same.
Attachments (2)
Change History (8)
comment:1 by , 14 years ago
Summary: | Webkit → Entry input fields in Webkit don't accept some characters |
---|
by , 14 years ago
Attachment: | widget.txt added |
---|
comment:2 by , 14 years ago
DEVINFO=KBD,SG150G,C:\OS2\KEYBOARD.DCP
COUNTRY=041,C:\OS2\SYSTEM\COUNTRY.SYS
SET LANG=de_CH
comment:3 by , 14 years ago
Okay, thanks Silvan. Looks pretty OK. I suspect that Webkit thinks that if Alt is pressed then this is not a char (but a non-null text value clearly says that it is). The mods value when entering @ is the only difference between your locale (where it doesn't work) and mine (where it does). In your case, mods contain Alt, in my case it's Shift.
BTW, it's interesting than when running this test on Windows the German locale not only has Alt in the mods field but also has Ctrl set but I only press AltGr+Q. AFAIR this is a Windows-specific feature to insert Ctrl-Alt whenever AltGr in layouts similar to German is pressed. This may explain why Webkit works well on Windows (I checked this) -- they probably check that if it's Ctrl+Alt, it's fine to interpret the input as a character.
comment:4 by , 14 years ago
comment:6 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think that this has to deal with the keyboard modifier flags somehow. The question is who behaves wrongly here: Qt or Webkit. (As the input in normal Qt line entry fields works well I would suspect Webkit).
To find out, those who have the German OS/2 keyboard (or any other where some characters are entered using AltGr) please download the attached widget.exe test (it should work with the Qt 4.6.2 release DLLs) and do the following:
widget.exe 2>out.txt
.