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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user