mirror of
https://github.com/encounter/SDL.git
synced 2025-05-19 05:41:22 +00:00
parent
0aff42a159
commit
1a4e2e5ef7
@ -839,7 +839,7 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
|
if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
|
||||||
if (has_text) {
|
if (has_text && !(SDL_GetModState() & KMOD_CTRL)) {
|
||||||
Wayland_data_device_set_serial(input->data_device, serial);
|
Wayland_data_device_set_serial(input->data_device, serial);
|
||||||
if (!handled_by_ime) {
|
if (!handled_by_ime) {
|
||||||
SDL_SendKeyboardText(text);
|
SDL_SendKeyboardText(text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user