Skip to content

Commit

Permalink
Change "resize to fit" shortcut to Meta+w
Browse files Browse the repository at this point in the history
Meta+x will be used for CUT (cut text to clipboard).
  • Loading branch information
rom1v committed May 29, 2020
1 parent 9badd2b commit 567c5a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ _`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
| Rotate display left | `Meta`+`` _(left)_
| Rotate display right | `Meta`+`` _(right)_
| Resize window to 1:1 (pixel-perfect) | `Meta`+`g`
| Resize window to remove black borders | `Meta`+`x` \| _Double-click¹_
| Resize window to remove black borders | `Meta`+`w` \| _Double-click¹_
| Click on `HOME` | `Meta`+`h` \| _Middle-click_
| Click on `BACK` | `Meta`+`b` \| _Right-click²_
| Click on `APP_SWITCH` | `Meta`+`s`
Expand Down
2 changes: 1 addition & 1 deletion app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Rotate display right
Resize window to 1:1 (pixel\-perfect)

.TP
.B Meta+x, Double\-click on black borders
.B Meta+w, Double\-click on black borders
Resize window to remove black borders

.TP
Expand Down
2 changes: 1 addition & 1 deletion app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ scrcpy_print_usage(const char *arg0) {
" " MOD "+g\n"
" Resize window to 1:1 (pixel-perfect)\n"
"\n"
" " MOD "+x\n"
" " MOD "+w\n"
" Double-click on black borders\n"
" Resize window to remove black borders\n"
"\n"
Expand Down
2 changes: 1 addition & 1 deletion app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ input_manager_process_key(struct input_manager *im,
screen_switch_fullscreen(im->screen);
}
return;
case SDLK_x:
case SDLK_w:
if (!shift && !repeat && down) {
screen_resize_to_fit(im->screen);
}
Expand Down

0 comments on commit 567c5a7

Please sign in to comment.