Closed
Bug 299221
Opened 20 years ago
Closed 20 years ago
[CLEANUP] assign "isChar" inside gecko event conversion
Categories
(Core :: Widget: Cocoa, defect)
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.
Attachment #187762 -
Flags: superreview?(sfraser_bugs)
Attachment #187762 -
Flags: review?(pinkerton)
Comment 2•20 years ago
|
||
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...
Comment 4•20 years ago
|
||
the better question is "why was it there in the first place?" Is it something we
should be using, rather than removing?
Comment 5•20 years ago
|
||
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.
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+
Comment 7•20 years ago
|
||
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 8•20 years ago
|
||
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-
Updated•20 years ago
|
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
Updated•20 years ago
|
Component: Widget → Widget: Cocoa
QA Contact: cocoa
Updated•20 years ago
|
Attachment #187762 -
Flags: review?(pinkerton)
You need to log in
before you can comment on or make changes to this bug.
Description
•