Browse Source
Merge pull request #13179 from Gillibald/fixes/macDisabledIme
[Mac] Only raise TextInput for non empty keySymbol
pull/13193/head
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
native/Avalonia.Native/src/OSX/AvnView.mm
|
|
|
@ -461,10 +461,10 @@ |
|
|
|
auto timestamp = static_cast<uint64_t>([event timestamp] * 1000); |
|
|
|
auto modifiers = [self getModifiers:[event modifierFlags]]; |
|
|
|
|
|
|
|
if(!_lastKeyConsumeByInputContext || key <= 32){ |
|
|
|
if(!_lastKeyConsumeByInputContext){ |
|
|
|
auto handled = _parent->BaseEvents->RawKeyEvent(type, timestamp, modifiers, key, physicalKey, keySymbolUtf8); |
|
|
|
|
|
|
|
if(key > 32 && type == KeyDown && !handled){ |
|
|
|
if(type == KeyDown && !handled && keySymbolUtf8 != NULL){ |
|
|
|
_parent->BaseEvents->RawTextInputEvent(timestamp, keySymbolUtf8); |
|
|
|
} |
|
|
|
} |
|
|
|
|