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

Report the Delete key in text #2013

Closed

Conversation

ArturKovacs
Copy link
Contributor

@ArturKovacs ArturKovacs commented Aug 28, 2021

Note that this is targeting the new-keyboard branch.
Related: #1806

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

ArturKovacs and others added 4 commits April 25, 2021 18:29
* Introducing the new `KeyEvent` and renaming old stuff

* Implemented physical_key on Windows

* Ran cargo fmt

* Progress with the keyboard's windows implementation

* Add proper handling of dead keys

* Add translation for non-printable virtual keys

* Run `cargo fmt`

* Fix for AltGraph not being reported

* Synthesize key events when focus enters or leaves

* Minor improvements

* Remove obsolete API

* Fix numlock and pause not being reported correctly

* Ran `cargo fmt`

* Fix numpad keys being reported incorrectly

* Update examples

* Ran `cargo fmt`

* Add documentation for `ScanCode`

* Add key binding example

* Use consistent modifier key names rust-windowing#1343

* WONT COMPILE transitioning to new keyboard API

* WONT COMPILE Implement new keyboard layout preparation

* WONT COMPILE new keyboard API progress

* Main compile errors fixed for keyboard

* Fix bugs in new keyboard handling

* Remove obsolete code

* Fix examples

* Ran `cargo fmt`

* Fix build error with serde

* Ran `cargo fmt`

* Tweaks in the Windows keyboard implementation

* Add `KeyCodeExtScancode`

* Add `reset_dead_keys`

* Improve the documentation for `Key` and `KeyCode`

* Rename the meta key to super

* Address feedback for the keyboard API

* Fix for rustdoc

Co-authored-by: Markus Røyset <maroider@protonmail.com>

* Improve documentation

Co-authored-by: Markus Røyset <maroider@protonmail.com>

* Fix for arrow keys being reported as unidentified.

And minor improvements

* Fix media keys reporting Unidentified

* Don't report text on key release events

* Fix for NumLock being reported as Pause in raw input

* Fix for strange behaviour around NumLock and Pause

* Fix for NumLock being ineffective

* Fix for location not being reported correctly

* `RawKeyEvent`s now report repeat

* Don't report text for synthetic key releases

* Address feedback

- Add the `Space` variant to the `to_text` function.
- Mark `get_kbd_state` safe.
- Change `[MaybeUninit<u8>; 256]` to `MaybeUninit<[u8; 256]>`

* Filter `Unidentified` from PrtSc key device events

* Don't report incorrect `RawKeyEvent` for shift + numpad

* AltGraph is not reported again

* Document Windows specific behaviour for shift+numpad

* Fix typo

* Dead keys now affect characters from logical_key

* Prevent Pause and NumLock mappings in window events

* Apply suggestions from code review

Co-authored-by: Markus Røyset <maroider@protonmail.com>

* Ran `cargo fmt`

* Add W3C license for `Key` and `KeyCode`

* Extend documentation according to feedback

* Ignore NumLock in `key_without_modifiers`

* Remove unused `key_code_to_non_char_key`

* Remove empty event.rs file

* Use space for resetting dead keys

* Fix reporting multiple graphemes in logical_key

* Avoid incorrect synthetic keypress during setfocus

* Fixed the AltGr keypress not being reported when the AltGr key is pressed and released in a very quick succession

* Filter fake Ctrl events when pressing AltGr

* Improve code quality

* Remove `repeat` from `RawKeyEvent`

* Allow fractional scroll in raw mouse events

* Fix typo

Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>

* Remove unused imports

* Remove unused variable

* Remove unnecessary `unwrap()`

Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>

* Avoid using the deprecated `into_rgba()`

* Fix IME crash

Co-authored-by: Markus Røyset <maroider@protonmail.com>
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
Copy link
Member

@maroider maroider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested it, but it looks ok.

@kchibisov
Copy link
Member

closing as we have mono branch.

@kchibisov kchibisov closed this May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants