projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85ecaa5
)
editor: Only delete on backspace key released
author
Jan Arne Petersen
<jpetersen@openismus.com>
Thu, 18 Apr 2013 14:47:26 +0000
(16:47 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 2 May 2013 20:24:02 +0000
(16:24 -0400)
Do not delete two characters when key is pressed and released.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
clients/editor.c
patch
|
blob
|
history
diff --git
a/clients/editor.c
b/clients/editor.c
index
027b562
..
e686248
100644
(file)
--- a/
clients/editor.c
+++ b/
clients/editor.c
@@
-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);