Closed
Bug 1442724
Opened 7 years ago
Closed 7 years ago
Use keydown instead of keypress to trigger display of the debugging panel
Categories
(Firefox :: WebPayments UI, enhancement, P1)
Firefox
WebPayments UI
Tracking
()
RESOLVED
FIXED
Firefox 60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: sfoster, Assigned: sfoster)
Details
(Whiteboard: [webpayments])
Attachments
(1 file)
Bug 1440189 removes the dispatch of keypress events for non-printable characters (such as the ctrl+alt+d sequence we use to show the debugging panel), and recommends using keydown instead for these cases.
| Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8955620 [details]
Bug 1442724 - Use keydown to trigger display of payments debugging panel.
https://reviewboard.mozilla.org/r/224720/#review230736
::: toolkit/components/payments/res/paymentRequest.js:36
(Diff revision 1)
> - case "keypress": {
> + case "keydown": {
> if (event.code != "KeyD" || !event.altKey || !event.ctrlKey) {
> break;
> }
If you've manually tested that this works then r=me. I thought that event.code may differ with keydown but I'm not sure.
Attachment #8955620 -
Flags: review?(MattN+bmo) → review+
| Assignee | ||
Comment 3•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8955620 [details]
Bug 1442724 - Use keydown to trigger display of payments debugging panel.
https://reviewboard.mozilla.org/r/224720/#review230738
::: toolkit/components/payments/res/paymentRequest.js:36
(Diff revision 1)
> - case "keypress": {
> + case "keydown": {
> if (event.code != "KeyD" || !event.altKey || !event.ctrlKey) {
> break;
> }
Yeah, this works fine.
Pushed by sfoster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/26fcec5f5ee4
Use keydown to trigger display of payments debugging panel. r=MattN
Comment 5•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•7 years ago
|
Assignee: nobody → sfoster
Updated•7 years ago
|
Priority: -- → P1
Whiteboard: [webpayments]
Updated•7 years ago
|
Product: Toolkit → Firefox
Target Milestone: mozilla60 → Firefox 60
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•