mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
fix FS#6754 - the standard context menu action will now delete the selected line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14137 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
31ff52cee6
commit
744f07f554
1 changed files with 1 additions and 7 deletions
|
@ -434,18 +434,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
}
|
||||
}
|
||||
break;
|
||||
#ifdef TEXT_EDITOR_DELETE
|
||||
case TEXT_EDITOR_DELETE:
|
||||
#ifdef TEXT_EDITOR_DELETE_PRE
|
||||
if (last_button != TEXT_EDITOR_DELETE_PRE)
|
||||
break;
|
||||
#endif
|
||||
case ACTION_STD_CONTEXT:
|
||||
if (!line_count) break;
|
||||
rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]);
|
||||
do_action(ACTION_REMOVE,0,cur_sel);
|
||||
changed = true;
|
||||
break;
|
||||
#endif
|
||||
case ACTION_STD_MENU:
|
||||
{ /* do the item menu */
|
||||
switch (do_item_menu(cur_sel, copy_buffer))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue