Closed Bug 231839 Opened 21 years ago Closed 20 years ago

Cannot write "(" into form when IME is on

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: achain, Assigned: mkaply)

Details

(Keywords: inputmethod)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.6) Gecko/20040117
Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.6) Gecko/20040117

I noticed that I cannot enter a parenthesis character "(" into input field
and textarea through IME (Input Method Editor for Japanese) is on.

Reproducible: Always

Steps to Reproduce:
1. Turn Japanese IME on.
2. Type "if (true) {" into input field.
3. Hit enter key to fix the input without ASCII -> Japanese conversion.
Actual Results:  
The string in input field become "if true);".
And screen scrolls three lines down in case of target is input field.
(Three lines scroll doesn't happen if target is textarea.)

Expected Results:  
The string in input field must be "if (true);".

1.6a, 1.6b and nightlies to OS2-2003121708 don't have this symptom.
OS2-2003121808 is the first build have this bug.
Workaround : Turn off IME then type "(".
Sorry, I forgot to mention.
I confirmed this bug only on OS/2. Win32 has no problem.
# change OS to OS/2
OS: other → OS/2
There are two possibilities here:

http://bugzilla.mozilla.org/show_bug.cgi?id=222509

which was related to key events

and

http://bugzilla.mozilla.org/show_bug.cgi?id=224929

which was related to focus.

I'll get my Japanese machine setup and take a look.
This is a snapshot of testcase of Bug 222509.
(http://bugzilla.mozilla.org/attachment.cgi?id=133441&action=view)
It shows just after pressing enter key to fix the "(" through IME.

I find another character which cannot be entered through IME. It's "&".
Entering "&" through IME gets completely same result on the testcase.
This is a snapshot of testcase of Bug 222509 with entering ")" through IME.
It seems normal.
Wow. Lee's code destroyed IME.
Assignee: events → mkaply
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Fix for problemSplinter Review
Interesting it appears that & never worked in the IME.

Basically we were mapping VK codes wrong in the IME case because it went down
an unknown path.

I added this unknown path and set the VK value to 0xFF to cause us to use the
char code.
Attachment #141167 - Flags: review?(pedemont)
Attachment #141167 - Flags: review?(pedemont) → review+
Fix checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comfirmed fixed with OS2-2004030108.
Thanks,
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: