summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Gjenero <boris.gjenero@gmail.com>2017-04-23 23:27:57 -0400
committerBoris Gjenero <boris.gjenero@gmail.com>2017-05-06 21:34:21 -0400
commit1b4ee1f33a7c7a7890dd343e65ec8df1531ccabf (patch)
treec34f923e0fb2e0a75b3a1c6c0cedb610338aab74
parent271c30f206fe9bef414efd437e3287b7a6aae527 (diff)
Fix Samsung YH92X/YH820 keypad conditional in text_editor
All the *_PAD values are always #defined. So the change made in 5e91ec1 was applied to all devices instead of only those it was meant to be applied to. Change-Id: Iba72316ecf2e3c83132b47484731cd177686b19e
-rw-r--r--apps/plugins/text_editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 5452f4524f..0eb1bb1dcc 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -459,7 +459,7 @@ enum plugin_status plugin_start(const void* parameter)
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_YH92X_PAD) || defined(SAMSUNG_YH820_PAD))
+#if (CONFIG_KEYPAD != SAMSUNG_YH92X_PAD) && (CONFIG_KEYPAD != SAMSUNG_YH820_PAD)
if (!line_count) break;
rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel),
MAX_LINE_LEN);