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

toggleTerminal shortcut does not work on French keyboard layout #17651

Closed
ghost opened this issue Dec 21, 2016 · 1 comment
Closed

toggleTerminal shortcut does not work on French keyboard layout #17651

ghost opened this issue Dec 21, 2016 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug keybindings VS Code keybinding issues keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux verified Verification succeeded
Milestone

Comments

@ghost
Copy link

ghost commented Dec 21, 2016

  • VSCode Version: Code 1.8.1 (ee428b0, 2016-12-19T14:41:20.664Z)
  • OS Version: Linux x64 4.4.0-53-generic
  • Extensions:
Extension Author Version
material-icon-theme PKief 1.1.5
vscode-docker PeterJausovec 0.0.10
ActiveFileInStatusBar RoscoP 1.0.2
path-intellisense christian-kohler 1.2.0
githistory donjayamanne 0.1.4
python donjayamanne 0.5.5
tslint eg2 0.7.1
relativepathrefactor jakob101 0.8.0
docthis joelday 0.3.5
Angular2 johnpapa 1.0.2
goto-last-edit-location krizzdewizz 0.2.1
cpptools ms-vscode 0.9.3
tsimporter pmneo 1.2.13
gitblame waderyan 1.3.0

Steps to Reproduce:

  1. Type CTRL+² to toggle the terminal as indicated in the shortcuts for a French keyboard (notice the ² sign above the TAB key)
  2. Nothing happens
  3. Add
    { "key": "ctrl+'",                "command": "workbench.action.terminal.toggleTerminal" }

in the keybindings.json
4. The CTRL+² now works properly and toggles the terminal...
5. But CTRL+' (below the 4 key) does not toggle the terminal as one would expect...

Notes:

  1. looking at the binary form of keybindings.json, the single quote is indeed the expected 0x27
  2. my ² key works properly otherwise... (I used it to type in this bug report).
@alexdima alexdima added keyboard-layout Keyboard layout issues keybindings VS Code keybinding issues bug Issue identified by VS Code Team member as probable bug labels Mar 1, 2017
@alexdima alexdima added this to the Backlog milestone Mar 1, 2017
@alexdima alexdima added the linux Issues with VS Code on Linux label Mar 1, 2017
@alexdima
Copy link
Member

I have validated that we now (i.e. after PR #22894 aka #17521 -- in tomorrow's Insiders build) appear to behave correctly for this keyboard layout

image


Analysis of default keybinding for workbench.action.terminal.toggleTerminal

  • workbench.action.terminal.toggleTerminal is bound by default to the key code binding ctrl+`
  • ` can be produced through two scan code combinations: Ctrl+Alt+[Digit7] and Ctrl+Alt+[Backslash]. i.e.:
    image
  • because Ctrl must be used to produce the visual character, the key code binding ctrl+` is not mappable . i.e. the scan code combo would need to be something like Ctrl+ Ctrl+Alt+[Digit7], which we don't support.
  • therefore, the action is unbound by default. That is unfortunate, but correct.
  • we don't ship with keyboard layout specific default keybindings, that is something you can upvote in Support contributing different keybindings based on keyboard layout #1240

Analysis of pressing Ctrl+[Backquote]

image

We now correctly label it:
image

And it is possible to bind it to workbench.action.terminal.toggleTerminal via the following keybinding rule:

{
    "key": "ctrl+[Backquote]",
    "command": "workbench.action.terminal.toggleTerminal"
}

This makes me believe the fix in PR #22894 aka #17521 resolves this issue. Please double check in tomorrow's insiders build.

@alexdima alexdima modified the milestones: March 2017, Backlog Mar 23, 2017
@roblourens roblourens added the verified Verification succeeded label Mar 31, 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
bug Issue identified by VS Code Team member as probable bug keybindings VS Code keybinding issues keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants