Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS some pointer/keyboard fixes #15061

Merged
merged 4 commits into from
Mar 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix UIKeyboardHidUsage.KeyboardDeleteOrBackspace mapping on iOS, shou…
…ld be mapped to Backspace
  • Loading branch information
maxkatz6 committed Mar 20, 2024
commit 821fab2b2f711cd4a613565f568cc7f7a013430f
3 changes: 2 additions & 1 deletion src/iOS/Avalonia.iOS/InputHandler.cs
Original file line number Diff line number Diff line change
@@ -292,7 +292,8 @@ private static RawInputModifiers ConvertModifierKeys(UIKeyModifierFlags? uiModif
[UIKeyboardHidUsage.Keyboard0] = PhysicalKey.Digit0,
[UIKeyboardHidUsage.KeyboardReturnOrEnter] = PhysicalKey.Enter,
[UIKeyboardHidUsage.KeyboardEscape] = PhysicalKey.Escape,
[UIKeyboardHidUsage.KeyboardDeleteOrBackspace] = PhysicalKey.Delete,
// See KeyboardDeleteForward for an actual Delete.
[UIKeyboardHidUsage.KeyboardDeleteOrBackspace] = PhysicalKey.Backspace,
[UIKeyboardHidUsage.KeyboardTab] = PhysicalKey.Tab,
[UIKeyboardHidUsage.KeyboardSpacebar] = PhysicalKey.Space,
[UIKeyboardHidUsage.KeyboardHyphen] = PhysicalKey.NumPadSubtract,