summaryrefslogtreecommitdiff
path: root/amiga/context_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/context_menu.c')
-rwxr-xr-xamiga/context_menu.c7
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;
}
}