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:
parent
c65b3f1f0b
commit
1689bd2bb2
@ -493,9 +493,7 @@ requested orientation.
|
||||
It is possible to synchronize clipboards between the computer and the device, in
|
||||
both directions:
|
||||
|
||||
- `RCtrl`+`c` copies the device clipboard to the computer clipboard;
|
||||
- `RCtrl`+`Shift`+`v` copies the computer clipboard to the device clipboard
|
||||
(and pastes if the device runs Android >= 7);
|
||||
- `RCtrl`+`v` _pastes_ the computer clipboard as a sequence of text events (but
|
||||
breaks non-ASCII characters).
|
||||
|
||||
@ -583,7 +581,6 @@ device).
|
||||
| Rotate device screen | `RCtrl`+`r`
|
||||
| Expand notification panel | `RCtrl`+`n`
|
||||
| Collapse notification panel | `RCtrl`+`Shift`+`n`
|
||||
| Copy device clipboard to computer | `RCtrl`+`c`
|
||||
| Paste computer clipboard to device | `RCtrl`+`v`
|
||||
| Copy computer clipboard to device and paste | `RCtrl`+`Shift`+`v`
|
||||
| Enable/disable FPS counter (on stdout) | `RCtrl`+`i`
|
||||
|
@ -277,10 +277,6 @@ Expand notification panel
|
||||
.B RCtrl+Shift+n
|
||||
Collapse notification panel
|
||||
|
||||
.TP
|
||||
.B RCtrl+c
|
||||
Copy device clipboard to computer
|
||||
|
||||
.TP
|
||||
.B RCtrl+v
|
||||
Paste computer clipboard to device
|
||||
|
@ -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 && !repeat && down) {
|
||||
if (shift) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user