linux: Fix detecting Alt modifier.
This commit is contained in:
parent
c2885f77c9
commit
58a09f6495
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ bool IsAltKey(const content::NativeWebKeyboardEvent& event) {
|
|||
|
||||
bool IsAltModifier(const content::NativeWebKeyboardEvent& event) {
|
||||
typedef content::NativeWebKeyboardEvent::Modifiers Modifiers;
|
||||
return (event.modifiers == (Modifiers::AltKey | Modifiers::IsLeft)) ||
|
||||
return (event.modifiers == Modifiers::AltKey) ||
|
||||
(event.modifiers == (Modifiers::AltKey | Modifiers::IsLeft)) ||
|
||||
(event.modifiers == (Modifiers::AltKey | Modifiers::IsRight));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue