From 5c5b06ba39d2f00d70baef66a90c9e3d6c497817 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 20 Feb 2009 17:48:43 +0000 Subject: Simplify the bookmark delete action. Combos don't need precondition checking. Also make this combo work in the bookmark screen if ON is pressed first. ON on its own is one of the OK actions in the chained context on these targets, so it must be suppressed here. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20066 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-av300.c | 4 ++-- apps/keymaps/keymap-player.c | 4 ++-- apps/keymaps/keymap-recorder.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/keymaps/keymap-av300.c b/apps/keymaps/keymap-av300.c index e528b9f311..6c91499a50 100644 --- a/apps/keymaps/keymap-av300.c +++ b/apps/keymaps/keymap-av300.c @@ -199,8 +199,8 @@ static const struct button_mapping button_context_keyboard[] = { }; /* button_context_keyboard */ static const struct button_mapping button_context_bmark[] = { - { ACTION_BMS_DELETE, BUTTON_SELECT|BUTTON_ON, BUTTON_SELECT }, - { ACTION_BMS_DELETE, BUTTON_SELECT|BUTTON_ON, BUTTON_ON }, + { ACTION_NONE, BUTTON_ON, BUTTON_NONE }, + { ACTION_BMS_DELETE, BUTTON_SELECT|BUTTON_ON, BUTTON_NONE }, LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), diff --git a/apps/keymaps/keymap-player.c b/apps/keymaps/keymap-player.c index 45fb2ebfbb..82362ecedb 100644 --- a/apps/keymaps/keymap-player.c +++ b/apps/keymaps/keymap-player.c @@ -89,8 +89,8 @@ static const struct button_mapping button_context_yesno[] = { }; /* button_context_settings_yesno */ static const struct button_mapping button_context_bmark[] = { - { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_PLAY }, - { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_ON }, + { ACTION_NONE, BUTTON_ON, BUTTON_NONE }, + { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_NONE }, LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), }; /* button_context_settings_bmark */ diff --git a/apps/keymaps/keymap-recorder.c b/apps/keymaps/keymap-recorder.c index 040aed65ac..08c1213fa4 100644 --- a/apps/keymaps/keymap-recorder.c +++ b/apps/keymaps/keymap-recorder.c @@ -201,8 +201,8 @@ static const struct button_mapping button_context_keyboard[] = { }; /* button_context_keyboard */ static const struct button_mapping button_context_bmark[] = { - { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_PLAY }, - { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_ON }, + { ACTION_NONE, BUTTON_ON, BUTTON_NONE }, + { ACTION_BMS_DELETE, BUTTON_PLAY|BUTTON_ON, BUTTON_NONE }, LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), -- cgit