slint/sixtyfps_runtime/rendering_backends/qt
Simon Hausmann 6db89e3468 Fix key events the control modifier on Windows, X11 and Wayland
Under these windowing systems, we receive a QString text from Qt that
contains a terminal control character (like \u{3} for ctrl+c). We
decided to supply the character for the key (for example 'c' for Ctrl+C)
to the application, so activate the conversion from the key code when
control characters are present.

With winit, we receive first a key down input event with the virtual key
code (for example C for Ctrl+C), followed by a ReceivedCharacter event
with a terminal control character. We choose to ignore that and instead
take the previously received key code and try to use that instead.

Fixes #441
2021-08-30 19:07:32 +02:00
..
build.rs Fix the qt backend always rebuilding 2021-08-06 21:48:38 +02:00
Cargo.toml Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
key_generated.rs Update license date 2021-07-02 15:55:54 +02:00
lib.rs Janitor: Fix clippy::needless_return 2021-08-18 00:24:51 +02:00
qt_widgets.rs Apply the default text color from the style for the color of Text and TextInput elements 2021-08-23 15:03:18 +02:00
qt_window.rs Fix key events the control modifier on Windows, X11 and Wayland 2021-08-30 19:07:32 +02:00