kettle11 / kapp

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)
Apache License 2.0
56 stars 4 forks source link

Consider adding "ReplaceLastCharacter" event for MacOS accent input #68

Open kettle11 opened 3 years ago

kettle11 commented 3 years ago

While investigating https://github.com/kettle11/kapp/issues/64 I came across a MacOS only feature that won't work correctly with kapp's text input events.

When holding the 'a' key the following things occur:

With kapp's current model there is no way to indicate that the last character should be replaced.

@lunabunn investigated and concluded that perhaps a Mac only "ReplaceLastCharacter" or similar event could be emitted. For now there's not an immediate need for this event, but later it may be needed to make MacOS text input more correct.