Remove device independent mask (flutter/engine#14010)

This commit is contained in:
Francisco Magdaleno 2019-11-25 14:55:12 -08:00 committed by GitHub
parent 45817c11df
commit 0ae5cf2b29

View File

@ -522,14 +522,12 @@ static void CommonInit(FlutterViewController* controller) {
}
- (void)flagsChanged:(NSEvent*)event {
NSUInteger currentlyPressedFlags =
event.modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask;
if (currentlyPressedFlags < _keyboardState.previously_pressed_flags) {
if (event.modifierFlags < _keyboardState.previously_pressed_flags) {
[self keyUp:event];
} else {
[self keyDown:event];
}
_keyboardState.previously_pressed_flags = currentlyPressedFlags;
_keyboardState.previously_pressed_flags = event.modifierFlags;
}
- (void)mouseEntered:(NSEvent*)event {