From 5e91ec14011656d8952007aceb99189cd28786ba Mon Sep 17 00:00:00 2001 From: Sebastian Leonhardt Date: Sun, 27 Dec 2015 18:14:41 +0100 Subject: 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 --- apps/plugins/text_editor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/text_editor.c') 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) } break; case ACTION_STD_CONTEXT: +/* These targets have unintuitive STD_MENU keymaps, so we use context keymap instead; + We don't need the "delete line" action, since this can be done via the menu. */ +#if !(defined(SAMSUNG_YH920_PAD) || defined(SAMSUNG_YH820_PAD)) if (!line_count) break; rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel), MAX_LINE_LEN); @@ -464,6 +467,7 @@ enum plugin_status plugin_start(const void* parameter) changed = true; break; case ACTION_STD_MENU: +#endif { /* do the item menu */ switch (do_item_menu(cur_sel)) -- cgit v1.2.3