Closed
Bug 1297635
Opened 8 years ago
Closed 8 years ago
Add a helper function for input to check whether input events with modifier should change the value
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: stone, Assigned: stone)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
4.54 KB,
patch
|
stone
:
review+
stone
:
feedback+
|
Details | Diff | Splinter Review |
Now we have different key modifiers checks when handling key events for range and number input. We should align them if possible.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sshih
Assignee | ||
Updated•8 years ago
|
Summary: Add helper function for input to check whether key event should change the value → Add a helper function for input to check whether input events with modifier should change the value
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8789187 -
Flags: feedback?(btseng)
Comment 2•8 years ago
|
||
Comment on attachment 8789187 [details] [diff] [review]
Add a helper function for input to check whether input events with modifier should change the value (V1)
Review of attachment 8789187 [details] [diff] [review]:
-----------------------------------------------------------------
f=me after the following issue is addressed, thanks!
::: dom/html/HTMLInputElement.cpp
@@ +8326,5 @@
> aSequence.AppendElements(mEntries);
> }
>
> +bool
> +HTMLInputElement::IgnoreInputEventWithModifier(WidgetInputEvent* aEvent) const
/* static */ bool
HTMLInputElement::IsInputModifier(WidgetInputEvent* aEvent) const
::: dom/html/HTMLInputElement.h
@@ +1518,5 @@
>
> + /**
> + * Return true if the input event should be ignore because of it's modifiers
> + */
> + bool IgnoreInputEventWithModifier(WidgetInputEvent* aEvent) const;
This is expected to be a static utility instead of a instance member function of this class.
Let rename it to static bool IsInputModifier(WidgetInputEvent* aEvent) const;
BTW, this is out of the scope of this bug but it's even better if we can have these utilities in the the anonymous namespace in .cpp to prevent adding this private functions in the .h which is not used by other modules.
Attachment #8789187 -
Flags: feedback?(btseng) → feedback+
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8789187 -
Attachment is obsolete: true
Attachment #8790134 -
Flags: review?(bugs)
Attachment #8790134 -
Flags: feedback+
Comment 4•8 years ago
|
||
Comment on attachment 8790134 [details] [diff] [review]
Add a helper function for input to check whether input events with modifier should change the value (V2)
We might even want to add a method similar to this to WidgetInputEvent,
but this is fine too.
Attachment #8790134 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Updated the patch summary
Attachment #8790134 -
Attachment is obsolete: true
Attachment #8790637 -
Flags: review+
Attachment #8790637 -
Flags: feedback+
Assignee | ||
Comment 6•8 years ago
|
||
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/be466c64f9c0
Add a helper function for input to check whether input events with modifier should change the value. r=smaug, f=bevistseng
Keywords: checkin-needed
Comment 8•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•