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 8a037e3d9b
commit e4a0fada10
4 changed files with 0 additions and 24 deletions

View File

@ -493,7 +493,6 @@ requested orientation.
It is possible to synchronize clipboards between the computer and the device, in It is possible to synchronize clipboards between the computer and the device, in
both directions: both directions:
- `RCtrl`+`c` copies the device clipboard to the computer clipboard;
- `RCtrl`+`v` _pastes_ the computer clipboard as a sequence of text events (but - `RCtrl`+`v` _pastes_ the computer clipboard as a sequence of text events (but
breaks non-ASCII characters). breaks non-ASCII characters).
@ -581,7 +580,6 @@ device).
| Rotate device screen | `RCtrl`+`r` | Rotate device screen | `RCtrl`+`r`
| Expand notification panel | `RCtrl`+`n` | Expand notification panel | `RCtrl`+`n`
| Collapse notification panel | `RCtrl`+`Shift`+`n` | Collapse notification panel | `RCtrl`+`Shift`+`n`
| Copy device clipboard to computer | `RCtrl`+`c`
| Paste computer clipboard to device | `RCtrl`+`v` | Paste computer clipboard to device | `RCtrl`+`v`
| Enable/disable FPS counter (on stdout) | `RCtrl`+`i` | Enable/disable FPS counter (on stdout) | `RCtrl`+`i`

View File

@ -277,10 +277,6 @@ Expand notification panel
.B RCtrl+Shift+n .B RCtrl+Shift+n
Collapse notification panel Collapse notification panel
.TP
.B RCtrl+c
Copy device clipboard to computer
.TP .TP
.B RCtrl+v .B RCtrl+v
Paste computer clipboard to device Paste computer clipboard to device

View File

@ -242,9 +242,6 @@ scrcpy_print_usage(const char *arg0) {
" RCtrl+Shift+n\n" " RCtrl+Shift+n\n"
" Collapse notification panel\n" " Collapse notification panel\n"
"\n" "\n"
" RCtrl+c\n"
" Copy device clipboard to computer\n"
"\n"
" RCtrl+v\n" " RCtrl+v\n"
" Paste computer clipboard to device\n" " Paste computer clipboard to device\n"
"\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 static void
set_device_clipboard(struct controller *controller, bool paste) { set_device_clipboard(struct controller *controller, bool paste) {
char *text = SDL_GetClipboardText(); char *text = SDL_GetClipboardText();
@ -341,11 +331,6 @@ input_manager_process_key(struct input_manager *im,
rotate_client_right(im->screen); rotate_client_right(im->screen);
} }
return; return;
case SDLK_c:
if (control && !shift && !repeat && down) {
request_device_clipboard(controller);
}
return;
case SDLK_v: case SDLK_v:
if (control && !shift && !repeat && down) { if (control && !shift && !repeat && down) {
// Inject the text as input events // Inject the text as input events