From 744f07f55439bc4b5d99d4fe0082ab640aad476c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 2 Aug 2007 11:07:06 +0000 Subject: 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 --- apps/plugins/text_editor.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 3c9bf7d7bf..3ac8cab3f2 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -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)) -- cgit v1.2.3