diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-05-08 15:21:53 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-05-08 15:21:53 +0000 |
commit | 517eb7efa21635e97241200c5c9d4e46aaa9028e (patch) | |
tree | 02601280d47da16761894a90a08178aa0c35f8ad /apps | |
parent | fda0d43172255536aa4cbb61ea1f262cbac1bdb4 (diff) | |
download | rockbox-517eb7efa21635e97241200c5c9d4e46aaa9028e.tar.gz rockbox-517eb7efa21635e97241200c5c9d4e46aaa9028e.zip |
Canceling edit support.
todo: insert, delete
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6434 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/databox/databox.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/databox/databox.c b/apps/plugins/databox/databox.c index 811b97e222..fe4886f513 100644 --- a/apps/plugins/databox/databox.c +++ b/apps/plugins/databox/databox.c | |||
@@ -242,7 +242,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
242 | editing.currentselection=(editing.currentselection+ | 242 | editing.currentselection=(editing.currentselection+ |
243 | 1) %editing.selectionmax; | 243 | 1) %editing.selectionmax; |
244 | } | 244 | } |
245 | if(button&BUTTON_RIGHT | 245 | else if(button&BUTTON_RIGHT |
246 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 246 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
247 | ||button&BUTTON_UP | 247 | ||button&BUTTON_UP |
248 | #endif | 248 | #endif |
@@ -250,7 +250,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
250 | editing.currentselection=(editing.currentselection + | 250 | editing.currentselection=(editing.currentselection + |
251 | editing.selectionmax-1) % editing.selectionmax; | 251 | editing.selectionmax-1) % editing.selectionmax; |
252 | } | 252 | } |
253 | if(button&BUTTON_SELECT) { | 253 | else if(button&BUTTON_OFF) { |
254 | rb->memcpy(&editor.token[editor.currentindex],&editing.old_token,sizeof(struct token)); | ||
255 | editing.selecting=0; | ||
256 | } | ||
257 | else if(button&BUTTON_SELECT) { | ||
254 | buildtoken(editing.selection_candidates[editing.currentselection],&editor.token[editor.currentindex]); | 258 | buildtoken(editing.selection_candidates[editing.currentselection],&editor.token[editor.currentindex]); |
255 | editing.selecting=0; | 259 | editing.selecting=0; |
256 | if(editor.token[editor.currentindex].kind==TOKEN_EOF) | 260 | if(editor.token[editor.currentindex].kind==TOKEN_EOF) |