diff options
Diffstat (limited to 'apps/keymaps/keymap-ondio.c')
-rw-r--r-- | apps/keymaps/keymap-ondio.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c index 5e56117298..45938138ed 100644 --- a/apps/keymaps/keymap-ondio.c +++ b/apps/keymaps/keymap-ondio.c | |||
@@ -155,7 +155,7 @@ static const struct button_mapping button_context_recscreen[] = { | |||
155 | 155 | ||
156 | static const struct button_mapping button_context_keyboard[] = { | 156 | static const struct button_mapping button_context_keyboard[] = { |
157 | { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE }, | 157 | { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE }, |
158 | { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 158 | { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
159 | { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | 159 | { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, |
160 | { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 160 | { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
161 | { ACTION_KBD_SELECT, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | 161 | { ACTION_KBD_SELECT, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, |
@@ -169,6 +169,22 @@ static const struct button_mapping button_context_keyboard[] = { | |||
169 | LAST_ITEM_IN_LIST | 169 | LAST_ITEM_IN_LIST |
170 | }; /* button_context_keyboard */ | 170 | }; /* button_context_keyboard */ |
171 | 171 | ||
172 | static const struct button_mapping button_context_morse_input[] = { | ||
173 | { ACTION_KBD_CURSOR_LEFT, BUTTON_LEFT, BUTTON_NONE }, | ||
174 | { ACTION_KBD_CURSOR_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | ||
175 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | ||
176 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | ||
177 | { ACTION_KBD_BACKSPACE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | ||
178 | { ACTION_KBD_DONE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, | ||
179 | { ACTION_KBD_ABORT, BUTTON_OFF, BUTTON_NONE }, | ||
180 | { ACTION_KBD_DOWN, BUTTON_DOWN, BUTTON_NONE }, | ||
181 | { ACTION_KBD_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
182 | { ACTION_KBD_SELECT, BUTTON_UP, BUTTON_NONE }, | ||
183 | { ACTION_KBD_MORSE_SELECT, BUTTON_UP|BUTTON_REL, BUTTON_NONE }, | ||
184 | |||
185 | LAST_ITEM_IN_LIST | ||
186 | }; /* button_context_morse_input */ | ||
187 | |||
172 | #if CONFIG_TUNER | 188 | #if CONFIG_TUNER |
173 | static const struct button_mapping button_context_radio[] = { | 189 | static const struct button_mapping button_context_radio[] = { |
174 | { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, | 190 | { ACTION_FM_MENU, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, |
@@ -223,6 +239,8 @@ const struct button_mapping* get_context_mapping( int context ) | |||
223 | #endif | 239 | #endif |
224 | case CONTEXT_KEYBOARD: | 240 | case CONTEXT_KEYBOARD: |
225 | return button_context_keyboard; | 241 | return button_context_keyboard; |
242 | case CONTEXT_MORSE_INPUT: | ||
243 | return button_context_morse_input; | ||
226 | #if CONFIG_TUNER | 244 | #if CONFIG_TUNER |
227 | case CONTEXT_FM: | 245 | case CONTEXT_FM: |
228 | return button_context_radio; | 246 | return button_context_radio; |