Closed Bug 299221 Opened 20 years ago Closed 20 years ago

[CLEANUP] assign "isChar" inside gecko event conversion

Categories

(Core :: Widget: Cocoa, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

Details

Attachments

(1 file, 1 obsolete file)

3.17 KB, patch
sfraser_bugs
: superreview+
Details | Diff | Splinter Review
In widget/src/cocoa/nsChildView.mm, we use an outparameter for "isChar" in cocoa->gecko event conversion. No need for this, so we should clean it up.
Assignee: general → joshmoz
Status: NEW → ASSIGNED
Attached patch fix v1.0Splinter Review
Attachment #187762 - Flags: superreview?(sfraser_bugs)
Attachment #187762 - Flags: review?(pinkerton)
Comment on attachment 187762 [details] [diff] [review] fix v1.0 >Index: widget/src/cocoa/nsChildView.mm >=================================================================== > - (void) convertKeyEvent:(NSEvent*)aKeyEvent message:(PRUint32)aMessage >- isChar:(PRBool*)aIsChar >- toGeckoEvent:(nsKeyEvent*)outGeckoEvent >+ toGeckoEvent:(nsKeyEvent*)outGeckoEvent remove this indentation change. otherwise, r=mano.
Attachment #187762 - Flags: review+
I'll get rid of that when I land - it looked different in my editor for some reason...
the better question is "why was it there in the first place?" Is it something we should be using, rather than removing?
This patch has the effect of setting isChar on the gecko event for keyUp events, when it was not set before. Note tha the keyUp: method didn't assign isChar to geckoEvent.isChar.
Attached patch fix v1.1 (obsolete) — Splinter Review
sets isChar to PR_FALSE in keyUp
Attachment #187762 - Attachment is obsolete: true
Attachment #187852 - Flags: superreview?(sfraser_bugs)
Attachment #187852 - Flags: review?(pinkerton)
Attachment #187762 - Flags: superreview?(sfraser_bugs)
Attachment #187762 - Flags: review?(pinkerton)
Attachment #187762 - Flags: review+
Actually the first patch does the right thing; looking at the carbon code, we only want to set isChar for some KEY_PRESS events, and never KEY_UP or KEY_DOWN.
Comment on attachment 187852 [details] [diff] [review] fix v1.1 well then...
Attachment #187852 - Flags: superreview?(sfraser_bugs)
Attachment #187852 - Flags: review?(pinkerton)
Attachment #187852 - Flags: review-
Attachment #187762 - Attachment is obsolete: false
Attachment #187762 - Flags: superreview+
Attachment #187762 - Flags: review?(pinkerton)
Attachment #187852 - Attachment is obsolete: true
fix v1.0 landed on trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: Widget → Widget: Cocoa
QA Contact: cocoa
Attachment #187762 - Flags: review?(pinkerton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: