diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2015-12-27 18:14:41 +0100 |
---|---|---|
committer | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2015-12-27 18:14:41 +0100 |
commit | 5e91ec14011656d8952007aceb99189cd28786ba (patch) | |
tree | 6e0d8a4850f5f7ec85f01bf599e840c25659881f /apps/plugins/text_editor.c | |
parent | ad65f8cc71bfe9e98936d5f781263850a9d50cc0 (diff) | |
download | rockbox-5e91ec14011656d8952007aceb99189cd28786ba.tar.gz rockbox-5e91ec14011656d8952007aceb99189cd28786ba.zip |
Samsung YH820/92x keymap bugfixes
This patch fixes some (mostly small) plugin issues with the "big"
YH-keymap patch (a507b). Only one fix affects the main keymaps
(virtual keyboard "DONE" now exits after long key /release/ instead
of long button /press/).
Change-Id: Id34f925ebfa97ae4974cd9405fbe1fee4f597833
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r-- | apps/plugins/text_editor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 6c1136cf48..75a877cf95 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -457,6 +457,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
457 | } | 457 | } |
458 | break; | 458 | break; |
459 | case ACTION_STD_CONTEXT: | 459 | case ACTION_STD_CONTEXT: |
460 | /* These targets have unintuitive STD_MENU keymaps, so we use context keymap instead; | ||
461 | We don't need the "delete line" action, since this can be done via the menu. */ | ||
462 | #if !(defined(SAMSUNG_YH920_PAD) || defined(SAMSUNG_YH820_PAD)) | ||
460 | if (!line_count) break; | 463 | if (!line_count) break; |
461 | rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel), | 464 | rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel), |
462 | MAX_LINE_LEN); | 465 | MAX_LINE_LEN); |
@@ -464,6 +467,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
464 | changed = true; | 467 | changed = true; |
465 | break; | 468 | break; |
466 | case ACTION_STD_MENU: | 469 | case ACTION_STD_MENU: |
470 | #endif | ||
467 | { | 471 | { |
468 | /* do the item menu */ | 472 | /* do the item menu */ |
469 | switch (do_item_menu(cur_sel)) | 473 | switch (do_item_menu(cur_sel)) |