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

Backslash key on German keyboard has no effect #4096

Closed
manfredbrandl opened this issue Jun 8, 2017 · 7 comments
Closed

Backslash key on German keyboard has no effect #4096

manfredbrandl opened this issue Jun 8, 2017 · 7 comments
Labels
bug A bug - let's fix this!

Comments

@manfredbrandl
Copy link
Contributor

manfredbrandl commented Jun 8, 2017

Pressing '\' should do the same as pause (change line while walking thru nodes), but doesnt do so on German keyboard. The Problem may be, that the key is 'ß' without modifier, '?' with Shift-Modifier and '\' with AltGr-Modifier.

@manfredbrandl manfredbrandl changed the title Some keys on German keyboard have no effect Backslash key on German keyboard have no effect Jun 8, 2017
@manfredbrandl manfredbrandl changed the title Backslash key on German keyboard have no effect Backslash key on German keyboard has no effect Jun 8, 2017
@bhousel
Copy link
Member

bhousel commented Jun 8, 2017

Yeah, based on #4079 (comment) I think we may be misinterpreting the keys which are generated with Alt Gr.

@bhousel bhousel added the bug A bug - let's fix this! label Jun 8, 2017
@bhousel
Copy link
Member

bhousel commented Jun 9, 2017

I haven't been able to figure out why Alt Gr combos are not working in iD. I had a few people test in IRC this morning, but nothing stood out as being an issue.

If you find that there is a key you can not type, can you go to this page https://codepen.io/bhousel/details/dRGpbO/ and type the key and let me know all of the output, also let me know your browser and OS and what kind of keyboard you have.

@bhousel bhousel added the waitfor-info Waiting for more info label Jun 9, 2017
@magol
Copy link

magol commented Jun 9, 2017

Keyboard layout: Swedish
Browser: Chrome 58
OS: Windows 10

  • key: \
    • which: 187
    • keyCode: 187
    • shiftKey: false
    • altKey: true
    • ctrlKey: true
    • metaKey: false
    • location: 0
  • key: }
    • which: 48
    • keyCode: 48
    • shiftKey: false
    • altKey: true
    • ctrlKey: true
    • metaKey: false
    • location: 0
  • key: ]
    • which: 57
    • keyCode: 57
    • shiftKey: false
    • altKey: true
    • ctrlKey: true
    • metaKey: false
    • location: 0

@bhousel
Copy link
Member

bhousel commented Jun 9, 2017

Awesome thanks @magol
The altKey and ctrlKey are what's causing the issue 👍 Not everyone's Alt Gr key does this, but some do, especially on Windows.

I think what I want to do is if both are present to pretend neither are present. It means we can't define a keyboard shortcut in iD that uses both Alt and Ctrl but that's ok because we don't use Alt for anything right now other than disabling the point snapping in draw modes.

@bhousel
Copy link
Member

bhousel commented Jun 9, 2017

@magol , @manfredbrandl I just pushed an update for this..
Can you test on http://preview.ideditor.com/master/ ?

@bhousel bhousel removed the waitfor-info Waiting for more info label Jun 9, 2017
@magol
Copy link

magol commented Jun 9, 2017

[, ] and \ do works now 👍

{ and } do still not works 😖

Really close now 😃

@bhousel
Copy link
Member

bhousel commented Jun 9, 2017

{ and } do still not works :-(

Thanks, I just realized now that we did not have these keys in the code even though they were in the documentation . I just added them.

{ -or- Ctrl[ -or- home = first vertex
} -or- Ctrl] -or- end = last vertex

I don't think the keyboard shortcuts screen has room for all of these though, so I'm going to leave off the Ctrl alternatives from the screen (they will still work in iD).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug - let's fix this!
Projects
None yet
Development

No branches or pull requests

3 participants