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

It is not possible to enter the letters Ś and ś in Polish language. #4834

Open
Slawek234 opened this issue Feb 23, 2018 · 8 comments
Open
Labels
bug A bug - let's fix this! help wanted For intermediate contributors, requires investigation or knowledge of iD code localization Adapting iD across languages, regions, and cultures

Comments

@Slawek234
Copy link

Slawek234 commented Feb 23, 2018

It is not possible during editing to enter the letters Ś and ś in Polish language.
By choosing the alt(right)+s combination instead of the letter ś, the ID editor tries to save changes.
OS Windows 10 64bit
Webbrowser Firefox 58.0.2 (32 bity), Opera 50.0.2762.67 (PGO)

@bhousel bhousel added bug A bug - let's fix this! localization Adapting iD across languages, regions, and cultures labels Feb 23, 2018
@maraf24
Copy link

maraf24 commented May 4, 2018

Pressing Right Alt + S on "polish programmer keyboard" layout - standard layout in Poland - generates Ctrl-Alt-S keyboard event.
In application - here iD - this event must be unhandled for the letter Ś to appear in edit field.
And this is where problem lies: you can invoke saving changes in iD by pressing Ctrl-Alt-S, Ctrl-Shift-S and Ctrl-S. However only the last shortcut is officially supported.
In order to fix the problem, we need Ctrl-Alt-S to stop working as a keyboard shortcut.

@bhousel
Copy link
Member

bhousel commented May 4, 2018

And this is where problem lies: you can invoke saving changes in iD by pressing Ctrl-Alt-S, Ctrl-Shift-S and Ctrl-S. However only the last shortcut is officially supported.
In order to fix the problem, we need Ctrl-Alt-S to stop working as a keyboard shortcut.

Ok I think I understand how to fix this. We'd need to make sure not to match the shortcut if Alt is pressed.

Just to make sure, is Ctrl-S a normal shortcut to use for a Save command in a Polish localization?
In en-US, it's pretty much universal that Ctrl-S means "save", but I wouldn't want to assume that this is true for Polish too:

screenshot 2018-05-04 16 57 31

@maraf24
Copy link

maraf24 commented May 4, 2018

Just to make sure, is Ctrl-S a normal shortcut to use for a Save command in a Polish localization?

Yes it is. Even though 'Save' is "Zapisz' in Polish, It wasn't changed as Ctrl+S is a standard shortcut in all Polish-localized software for saving data, probably thanks to popularity of Microsoft Office.

@Slawek234
Copy link
Author

Slawek234 commented May 4, 2018

In all Polish localization ctrl + s is used for saving (zapisz) ssss
alt(right) + s = ś, alt(right) + shift + s = Ś krzywy_domekk

@RicoElectrico
Copy link

Bump, this is a breaking issue. People on the Polish forum complain about this.

@1ec5
Copy link
Collaborator

1ec5 commented Aug 25, 2018

And this is where problem lies: you can invoke saving changes in iD by pressing Ctrl-Alt-S, Ctrl-Shift-S and Ctrl-S. However only the last shortcut is officially supported.

Unlike many shortcuts in iD, the Save button’s shortcut isn’t localizable:

var key = uiCmd('⌘S');

For consistency with the other and ⇧⌘ shortcuts, the S in Ctrl+S should be localizable. But the problem affecting Polish keyboard layouts appears to because d3 maps to more than just Ctrl on Windows. The mapping to modifier keys is implemented largely in d3.keybinding.js. These lines from #4096 may be relevant:

if (!(event.ctrlKey && event.altKey)) { // if both are set, assume AltGr and skip it - #4096
if (event.ctrlKey !== binding.event.modifiers.ctrlKey) return false;
if (event.altKey !== binding.event.modifiers.altKey) return false;
}

@bhousel
Copy link
Member

bhousel commented Aug 25, 2018

Bump, this is a breaking issue. People on the Polish forum complain about this.

I'll tag it as "help wanted". I think the people complaining are also in the best position to actually submit a pull request with a fix.

@bhousel bhousel added the help wanted For intermediate contributors, requires investigation or knowledge of iD code label Aug 25, 2018
@maraf24
Copy link

maraf24 commented Aug 26, 2018

This problem doesn't occur with latest version of Chrome.
I tested some other browsers:
Vivaldi on Chromium 65 - "ś" not working. Vivaldi on Chromium 68 - "ś" working.
Firefox 62beta - not working; Firefox Nightly - working.

I don't know what they changed.

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! help wanted For intermediate contributors, requires investigation or knowledge of iD code localization Adapting iD across languages, regions, and cultures
Projects
None yet
Development

No branches or pull requests

5 participants