From fb0a2116a35b7424609e3e698b521f8a08bc5e1f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 1 Feb 2009 13:01:46 +0000 Subject: Change to use names instead of numbers for keypresses Add missing keypresss svn path=/trunk/netsurf/; revision=6328 --- amiga/context_menu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'amiga/context_menu.c') diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 44a8819a7..f97b6aa60 100755 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -31,6 +31,7 @@ #include #include "utils/utils.h" #include +#include "desktop/textinput.h" uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved); @@ -277,12 +278,12 @@ uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved) break; case CMID_SELCOPY: - gui_copy_to_clipboard(gwin->bw->sel); - browser_window_key_press(gwin->bw, 26); + browser_window_key_press(gwin->bw, KEY_COPY_SELECTION); + browser_window_key_press(gwin->bw, KEY_CLEAR_SELECTION); break; case CMID_SELALL: - browser_window_key_press(gwin->bw, 1); + browser_window_key_press(gwin->bw, KEY_SELECT_ALL); break; } } -- cgit v1.2.3