-
Notifications
You must be signed in to change notification settings - Fork 29
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
Cleanup Todos in input.fs #194
Conversation
@@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) = | |||
| Key(_, Key.Add) -> Special("kPlus") | |||
| Key(_, Key.Subtract) -> Special("kMinus") | |||
| Key(_, Key.Divide) -> Special("kDivide") | |||
// TODO| Key(_, Key.Decimal) -> ??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to be covered by line 187.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must've been abandoned in the first run, then added later ;)
@@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) = | |||
| Key(_, Key.Add) -> Special("kPlus") | |||
| Key(_, Key.Subtract) -> Special("kMinus") | |||
| Key(_, Key.Divide) -> Special("kDivide") | |||
// TODO| Key(_, Key.Decimal) -> ??? | |||
// TODO| Key(_, Key.Separator) -> ??? | |||
| Key(_, Key.Separator) -> Special("Bar") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one I'm not sure.
see: https://github.com/AvaloniaUI/Avalonia/search?q=Key.Separator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to this thread: https://stackoverflow.com/questions/36666868/uk-keyboard-virtual-key-code-for-the-symbol
Key.Separator
is the "Enter" key on a numpad and I don't even have a numpad to test it 😂
Maybe map to <kEnter>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and maybe Key.Decimal
to <kPoint>
?
and thanks for cleaning this up! |
@jjohnson338 I've also cleaned up the keypad mappings (0efa44b) |
Took a swing at cleaning up a couple of TODOs found in the
input.fs
file.