mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-02 06:08:03 +02:00
editor: Only delete on backspace key released
Do not delete two characters when key is pressed and released. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
This commit is contained in:
parent
85ecaa5d75
commit
dfd344609a
1 changed files with 3 additions and 0 deletions
|
|
@ -327,6 +327,9 @@ text_input_keysym(void *data,
|
|||
if (key == XKB_KEY_BackSpace) {
|
||||
const char *start, *end;
|
||||
|
||||
if (state != WL_KEYBOARD_KEY_STATE_RELEASED)
|
||||
return;
|
||||
|
||||
text_entry_commit_and_reset(entry);
|
||||
|
||||
start = utf8_prev_char(entry->text, entry->text + entry->cursor);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue