Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Slash '/' does not work on German and Swiss-German keyboards #954

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 9 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: remo.nospam[at]gmx.net
[Submitted to the original trac issue database at 7.08am, Wednesday, 4th June 2008]

The slash to select another way does not work when I have set my keyboard to German or Swiss-German. It works as advertised when I set my keyboard to US. On the German and Swiss-German keyboard the slash is accessed with 'shift-7'. Is the fact that we have to use the shift key related to this bug?
My setup: Potlatch 0.9c on Flash WIN 9,0,124,0 on Firefox 2.0.0.14 on Windows 2000 SP4.
But I can see the same problem on my Vista laptop.

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 8.35pm, Wednesday, 4th June 2008]

Ah - this is a documentation bug, sorry. If you press the key which would be '/' on a British keyboard (I think it's '-') then it should work. I'll fix the documentation.

@openstreetmap-trac
Copy link
Author

Author: remo.nospam[at]gmx.net
[Added to the original trac issue at 8.02pm, Thursday, 5th June 2008]

The '-' is actually at the same position on the German and Swiss-German keyboard as the '/' is on the English keyboard. But pressing '-' does not select another way but it removes a point from the current way as the '-' on the English keyboard. So, it seems that 'select another way' acts on the position of the key and 'remove a point from the current way' act on the character value and 'remove a point from the current way' wins.

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 8.25pm, Thursday, 5th June 2008]

Eek. Ok, this is all a bit weird.

Both act on the the key code, not the character code:

http://trac.openstreetmap.org/browser/applications/editors/potlatch/potlatch.as#L731

But it turns out that Flash behaves in an... interesting fashion with non-US/UK keyboards. (See http://oddhammer.com/index.php/site/comments/bug_input_language_issue_on_screen_keyboard/ , http://savannah.gnu.org/task/?7292 .)

Could you use http://oddhammer.com/tutorials/german.html and tell me what values you get for '/' and '-'? Thanks!

@openstreetmap-trac
Copy link
Author

Author: remo.nospam[at]gmx.net
[Added to the original trac issue at 11.25pm, Thursday, 5th June 2008]

On my Swiss-German keyboard on Vista I get:
Input - /
getCode() 189 55
getAscii() 45 38
String.fromCharCode(Key.getAscii(()) - &

If I set the keyboard to German, I get the same.

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 6.51am, Thursday, 10th July 2008]

Should hopefully be fixed in 0.10 (awaiting deployment).

@openstreetmap-trac
Copy link
Author

Author: remo.nospam[at]gmx.net
[Added to the original trac issue at 2.43pm, Friday, 18th July 2008]

I have tried potlatch 0.10 today. With the German keyboard pressing '-' (where the '/' is on the UK keyboard) still deletes the point and pressing '/' (shift-7) does nothing. When I have set Windows to use the UK keymap, pressing '/' works as advertised.

Remo

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 3.23pm, Friday, 18th July 2008]

That's completely mad - http://trac.openstreetmap.org/browser/applications/editors/potlatch/potlatch.as#L641 clearly checks for the ASCII value of '/' now. I'll take a further look if I get a minute.

@openstreetmap-trac
Copy link
Author

Author: Circeus
[Added to the original trac issue at 10.29pm, Monday, 29th September 2008]

Have you considered supplementing th slash key with a alphanumeric one? It's not an actual bugfix, but at least it would allow everybody to use it without requiring too massive a reprogramming.

@openstreetmap-trac
Copy link
Author

Author: iandees
[Added to the original trac issue at 7.38pm, Monday, 9th September 2013]

Cleaning aging tickets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant