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

Standard Keyboard Functionality: Shift + End/Home doesn't work #10807

Closed
derekperkins opened this issue Aug 22, 2016 · 6 comments
Closed

Standard Keyboard Functionality: Shift + End/Home doesn't work #10807

derekperkins opened this issue Aug 22, 2016 · 6 comments
Assignees
Labels
macos Issues with VS Code on MAC/OS X
Milestone

Comments

@derekperkins
Copy link

  • VSCode Version: 1.4
  • OS Version: MacOS 10.11.6

Steps to Reproduce:

  1. Shift + End doesn't select from the current cursor location to the end of the line.
  2. Shift + Home doesn't select from the current cursor location to the beginning of the line.
@amc123-glitch
Copy link

Have you gone into your preferences and then click on keyboard shortcuts? when you click that it will bring up the shortcuts and a page for keybindings that you can set those two functions and override the default. Here is a link to the list of keyboard functions as well https://code.visualstudio.com/docs/customization/keybindings

@derekperkins
Copy link
Author

Those commands are in the default bindings. The alternate shift+cmd+right works, but shift+end does not work, at least for me. It also doesn't work if I paste them into my user settings, which should override any extensions if those were overriding the built ins.

{ "key": "shift+cmd+right",       "command": "cursorEndSelect",
                                     "when": "editorTextFocus" },
{ "key": "shift+end",             "command": "cursorEndSelect",
                                     "when": "editorTextFocus" },
...
{ "key": "shift+cmd+left",        "command": "cursorHomeSelect",
                                     "when": "editorTextFocus" },
{ "key": "shift+home",            "command": "cursorHomeSelect",
                                     "when": "editorTextFocus" },

@derekperkins
Copy link
Author

And to clarify, shift+end and shift+home work in both Sublime and Atom on my machine, so I don't think there's an issue with my keyboard not registering correctly.

@sandy081
Copy link
Member

@derekperkins shift+end and shift+home keyboard shortcuts are working as expected for me.

On Mac I used following keys for

end : fn + right arrow
home: fn + left arrow

Can you please try with these and let me know if it is still not working.

Thanks

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Aug 23, 2016
@derekperkins
Copy link
Author

That combo worked for me, but an external keyboard with physical End/Home buttons does not work when combined with Shift. Inside VSCode, I can use Home and End and they work as expected, but Shift + End or Shift + Home does nothing. Those same commands do work in Sublime, Atom, Microsoft Word, etc, so correct keybindings are being sent.

@sandy081 sandy081 removed the info-needed Issue requires more information from poster label Aug 24, 2016
@alexdima alexdima added the macos Issues with VS Code on MAC/OS X label Mar 24, 2017
@alexdima
Copy link
Member

I have validated that we now (i.e. after PR #22894 aka #17521 -- in today's Insiders build) appear to behave correctly for these keys. I have attached a standard QWERTY keyboard to a mac mini and configured OSX to use the US layout. Pressing the Home/End keys appear to be interpreted correctly:

image

@alexdima alexdima added this to the March 2017 milestone Mar 24, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
macos Issues with VS Code on MAC/OS X
Projects
None yet
Development

No branches or pull requests

4 participants