Remove RCtrl+c copy shortcut

Now that Ctrl+c is forwarded to the device, and that every device
clipboard change is automatically synchronized to the computer, RCtrl+c
is useless.
This commit is contained in:
Romain Vimont
2020-06-01 15:59:44 +02:00
parent 8700ad74b9
commit 793db5a77e
4 changed files with 0 additions and 24 deletions

View File

@@ -242,9 +242,6 @@ scrcpy_print_usage(const char *arg0) {
" RCtrl+Shift+n\n"
" Collapse notification panel\n"
"\n"
" RCtrl+c\n"
" Copy device clipboard to computer\n"
"\n"
" RCtrl+v\n"
" Paste computer clipboard to device\n"
"\n"

View File

@@ -101,16 +101,6 @@ collapse_notification_panel(struct controller *controller) {
}
}
static void
request_device_clipboard(struct controller *controller) {
struct control_msg msg;
msg.type = CONTROL_MSG_TYPE_GET_CLIPBOARD;
if (!controller_push_msg(controller, &msg)) {
LOGW("Could not request device clipboard");
}
}
static void
set_device_clipboard(struct controller *controller, bool paste) {
char *text = SDL_GetClipboardText();
@@ -341,11 +331,6 @@ input_manager_process_key(struct input_manager *im,
rotate_client_right(im->screen);
}
return;
case SDLK_c:
if (control && !shift && !repeat && down) {
request_device_clipboard(controller);
}
return;
case SDLK_v:
if (control && !shift && !repeat && down) {
// Inject the text as input events