diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-01 13:01:46 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-01 13:01:46 +0000 |
commit | fb0a2116a35b7424609e3e698b521f8a08bc5e1f (patch) | |
tree | e5fcb457f409c97e61f07c7af6bb07e984fa459a /amiga/context_menu.c | |
parent | f46dd787188b662af08588414f4d2efc08220eae (diff) | |
download | netsurf-fb0a2116a35b7424609e3e698b521f8a08bc5e1f.tar.gz netsurf-fb0a2116a35b7424609e3e698b521f8a08bc5e1f.tar.bz2 |
Change to use names instead of numbers for keypresses
Add missing keypresss
svn path=/trunk/netsurf/; revision=6328
Diffstat (limited to 'amiga/context_menu.c')
-rwxr-xr-x | amiga/context_menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <string.h> #include "utils/utils.h" #include <proto/asl.h> +#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; } } |