Id: Backslash key on German keyboard has no effect

Created on 8 Jun 2017  路  7Comments  路  Source: openstreetmap/iD

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.

bug

All 7 comments

Yeah, based on https://github.com/openstreetmap/iD/issues/4079#issuecomment-306474674 I think we may be misinterpreting the keys which are generated with Alt Gr.

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.

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

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.

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

[, ] and \ do works now 馃憤

{ and } do still not works :confounded:

Really close now :smiley:

{ 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).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oskarlin picture oskarlin  路  21Comments

1ec5 picture 1ec5  路  24Comments

bhousel picture bhousel  路  23Comments

slibby picture slibby  路  34Comments

hajo4 picture hajo4  路  33Comments