forked from len0rd/rockbox
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;
|
break;
|
||||||
#ifdef TEXT_EDITOR_DELETE
|
case ACTION_STD_CONTEXT:
|
||||||
case TEXT_EDITOR_DELETE:
|
|
||||||
#ifdef TEXT_EDITOR_DELETE_PRE
|
|
||||||
if (last_button != TEXT_EDITOR_DELETE_PRE)
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
if (!line_count) break;
|
if (!line_count) break;
|
||||||
rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]);
|
rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]);
|
||||||
do_action(ACTION_REMOVE,0,cur_sel);
|
do_action(ACTION_REMOVE,0,cur_sel);
|
||||||
changed = true;
|
changed = true;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case ACTION_STD_MENU:
|
case ACTION_STD_MENU:
|
||||||
{ /* do the item menu */
|
{ /* do the item menu */
|
||||||
switch (do_item_menu(cur_sel, copy_buffer))
|
switch (do_item_menu(cur_sel, copy_buffer))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue