mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784783 Don't access [NSEvent characters] if the event type is neither NSKeyDown nor NSKeyUp r=smichaud
This commit is contained in:
parent
78431d63a5
commit
42c33fcf7c
@ -712,6 +712,12 @@ TISInputSourceWrapper::InitKeyEvent(NSEvent *aNativeKeyEvent,
|
||||
UInt32 nativeKeyCode = [aNativeKeyEvent keyCode];
|
||||
|
||||
bool isPrintableKey = !TextInputHandler::IsSpecialGeckoKey(nativeKeyCode);
|
||||
if (isPrintableKey &&
|
||||
[aNativeKeyEvent type] != NSKeyDown &&
|
||||
[aNativeKeyEvent type] != NSKeyUp)) {
|
||||
NS_WARNING("Why the printable key doesn't cause NSKeyDown or NSKeyUp?");
|
||||
isPrintableKey = false;
|
||||
}
|
||||
|
||||
// Decide what string will be input.
|
||||
nsAutoString insertString;
|
||||
|
Loading…
Reference in New Issue
Block a user