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

Cannot use numpad keys in key shortcuts #983

Closed
nippur72 opened this issue Dec 3, 2015 · 4 comments
Closed

Cannot use numpad keys in key shortcuts #983

nippur72 opened this issue Dec 3, 2015 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@nippur72
Copy link

nippur72 commented Dec 3, 2015

Zooming in/out with ctrl + and ctrl - is not possible from the numpad, neither the numpad keys can be referenced specifically so to reconfigure the keymapping.

@alexdima alexdima self-assigned this Dec 4, 2015
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@alexdima alexdima added the feature-request Request for new features or functionality label Dec 11, 2015
@alexdima alexdima modified the milestones: Dec 2015, Backlog Dec 11, 2015
@cliffowen
Copy link

In version 1.0 this worked great (on Mac). In 1.1x it is once again broken. This the most compelling feature for me to use VSCode over Sublime and without it I gotta go back to Sublime. Any chance for a fix?

@alexdima
Copy link
Member

@cliffowen What keyboard layout do you have configured?

What happens when you go to Preferences > Keyboard Shortcuts and click on the Define Keybinding and type cmd + numpad+ , cmd + numapd- ?:

Here I am doing it with ctrl as I am on a Windows machine:

keybindings

@cliffowen
Copy link

Again, I am using a Mac.. and using El Capitan (since I did not mention that before). The keyboard layout is ANSI US. I speculate the layout is correct though, as VMWare and Parallels both handle the keyboard properly. Actual keyboard is a Logitech Wave.

Oddly enough, Numpad + and - are fine (numpad_add and numpad_subtract). It's the numbers that are not correct. In the capture window, they report 0, 1, 2... rather than numpad0, numpad1, etc.

Here are a couple of the bindings I had set up and were working on the Mac on 1.0 that no longer work with 1.1.x. My primary goal is identical behavior between VS and VSC on PC and Mac.

{
    "key": "numpad9",
    "command": "cursorPageUp",
    "when": "editorTextFocus"
},
{
    "key": "shift+numpad8",
    "command": "cursorUpSelect",
    "when": "editorTextFocus"
},

@alexdima
Copy link
Member

I've created #6833 to track this.

@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
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants