mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Update some key event warnings to match GTK2.10+ b=311756 r+sr=jst a=dsicore
This commit is contained in:
parent
49d32f0411
commit
c4745040a7
@ -938,13 +938,13 @@ nsXBLPrototypeHandler::ConstructPrototype(nsIContent* aKeyElement,
|
||||
const PRUint8 GTK2Modifiers = cShift | cControl | cShiftMask | cControlMask;
|
||||
if ((mKeyMask & GTK2Modifiers) == GTK2Modifiers &&
|
||||
modifiers.First() != PRUnichar(',') &&
|
||||
(('0' <= mDetail && mDetail <= '9') ||
|
||||
('a' <= mDetail && mDetail <= 'f')))
|
||||
(mDetail == 'u' || mDetail == 'U'))
|
||||
ReportKeyConflict(key.get(), modifiers.get(), aKeyElement, "GTK2Conflict");
|
||||
const PRUint8 WinModifiers = cControl | cAlt | cControlMask | cAltMask;
|
||||
if ((mKeyMask & WinModifiers) == WinModifiers &&
|
||||
modifiers.First() != PRUnichar(',') &&
|
||||
'a' <= mDetail && mDetail <= 'f')
|
||||
(('A' <= mDetail && mDetail <= 'Z') ||
|
||||
('a' <= mDetail && mDetail <= 'z')))
|
||||
ReportKeyConflict(key.get(), modifiers.get(), aKeyElement, "WinConflict");
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user