зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1607686 - Add beforeinput to Event Listener Breakpoints. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D63038 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0439db3a39
Коммит
e26ebfa04a
|
@ -4,6 +4,8 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const Services = require("Services");
|
||||
|
||||
function generalEvent(groupID, eventType) {
|
||||
return {
|
||||
id: `event.${groupID}.${eventType}`,
|
||||
|
@ -157,11 +159,14 @@ const AVAILABLE_BREAKPOINTS = [
|
|||
{
|
||||
name: "Keyboard",
|
||||
items: [
|
||||
Services.prefs.getBoolPref("dom.input_events.beforeinput.enabled")
|
||||
? generalEvent("keyboard", "beforeinput")
|
||||
: null,
|
||||
generalEvent("keyboard", "input"),
|
||||
generalEvent("keyboard", "keydown"),
|
||||
generalEvent("keyboard", "keyup"),
|
||||
generalEvent("keyboard", "keypress"),
|
||||
generalEvent("keyboard", "input"),
|
||||
],
|
||||
].filter(Boolean),
|
||||
},
|
||||
{
|
||||
name: "Load",
|
||||
|
|
Загрузка…
Ссылка в новой задаче