Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support passing in Home and Ctrl-x keys #555

Closed
lilydjwg opened this issue May 26, 2019 · 4 comments
Closed

support passing in Home and Ctrl-x keys #555

lilydjwg opened this issue May 26, 2019 · 4 comments

Comments

@lilydjwg
Copy link

When I press the End key, my cursor jumps to the end of line. But when I press the Home key, it returns to the home screen instead of jumping to the start of line.

Key combinations like Ctrl-sth don't work either.

I suggest adding an option to enable all of this, and make scrcpy-specific keys prefixed by a certain key (e.g. the host key in Virtualbox, or the prefix key in screen / tmux).

Even better, can you emulate the keyboard as a physical keyboard (like physically connected to the phone).

This kind of improvements will make typing in scrcpy easiler because the user will not need to switch between mouse and keyboard that often.

@leiserfg
Copy link

It it will be pretty useful for using termux.

rom1v added a commit that referenced this issue May 27, 2019
On pressing Home key on the computer, move the cursor to the beginning
of the line instead of going back to the home screen.

<https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME>
<https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MOVE_HOME>

Fixes (part of) <#555>.
@rom1v
Copy link
Collaborator

rom1v commented May 27, 2019

But when I press the Home key, it returns to the home screen instead of jumping to the start of line.

Fixed by 5d473ef.

rom1v added a commit that referenced this issue May 28, 2020
Only capture Left-Ctrl for scrcpy shortcuts, so that Right-Ctrl can be
forwarded to the device.

Fixes #555 <#555>
@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

What do you think about #1446 to solve this problem?

rom1v added a commit that referenced this issue May 29, 2020
Now that Meta is used for scrcpy shortcuts, Ctrl can be forwarded to the
device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue May 29, 2020
Now that Meta is used for scrcpy shortcuts, Ctrl can be forwarded to the
device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Jun 1, 2020
Now that only RCtrl is used for scrcpy shortcuts, LCtrl can be forwarded
to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Jun 4, 2020
Now that only RCtrl is used for scrcpy shortcuts, LCtrl can be forwarded
to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Jul 16, 2020
Now that the scrcpy shortcut modifier is Alt by default (and can be
configured), forward Ctrl to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Jul 16, 2020
Now that the scrcpy shortcut modifier is Alt by default (and can be
configured), forward Ctrl to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Jul 17, 2020
Now that the scrcpy shortcut modifier is Alt by default (and can be
configured), forward Ctrl to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Aug 1, 2020
Now that the scrcpy shortcut modifier is Alt by default (and can be
configured), forward Ctrl to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
rom1v added a commit that referenced this issue Aug 1, 2020
Now that the scrcpy shortcut modifier is Alt by default (and can be
configured), forward Ctrl to the device.

This allows to trigger Android shortcuts.

Fixes #555 <#555>
@rom1v
Copy link
Collaborator

rom1v commented Aug 1, 2020

Fixed by #1598.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants