mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 728132 test_bug583533.html shouldn't use nsIDOMNSEvent::*_MASK r=smaug
This commit is contained in:
parent
93fdd4cb81
commit
910c88091a
@ -35,9 +35,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=583533
|
||||
var modifier = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch)
|
||||
.getIntPref("ui.key.contentAccess");
|
||||
|
||||
var domEvent = Components.interfaces.nsIDOMNSEvent;
|
||||
|
||||
|
||||
var isShift;
|
||||
var isAlt;
|
||||
var isControl;
|
||||
@ -45,14 +43,19 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=583533
|
||||
|
||||
is(modifier < 16 && modifier >= 0, true, "Modifier in range");
|
||||
|
||||
if (modifier & domEvent.META_MASK)
|
||||
// There are no consts for the mask of this prefs.
|
||||
if (modifier & 8) {
|
||||
isMeta = true;
|
||||
if (modifier & domEvent.SHIFT_MASK)
|
||||
}
|
||||
if (modifier & 1) {
|
||||
isShift = true;
|
||||
if (modifier & domEvent.CONTROL_MASK)
|
||||
}
|
||||
if (modifier & 2) {
|
||||
isControl = true;
|
||||
if (modifier & domEvent.ALT_MASK)
|
||||
}
|
||||
if (modifier & 4) {
|
||||
isAlt = true;
|
||||
}
|
||||
|
||||
var label = "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user