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

Keyboard layout not properly detected in shortcuts #7543

Open
3 of 4 tasks
avsmith opened this issue Aug 7, 2020 · 9 comments
Open
3 of 4 tasks

Keyboard layout not properly detected in shortcuts #7543

avsmith opened this issue Aug 7, 2020 · 9 comments
Labels
bug key bindings locale internationalization, localization, keyboard, region, and language
Milestone

Comments

@avsmith
Copy link

avsmith commented Aug 7, 2020

System details

RStudio Edition : Desktop
RStudio Version : 1.3.1056
OS Version      : Mac 10.15.6
R Version       : 4.0.2

Steps to reproduce the problem

  1. Activate Icelandic Keyboard Layout
  2. Use default RStudio keyboard shortcuts
  3. Type "Alt-ö" inserts "<-" rather than "\"

Describe the problem in detail

The Icelandic keyboard maps the "Alt+ö" key to "\". When trying this key combo in RStudio, the assignment "<-" is inserted (by the default keyboard shortcuts). The default keyboard shortcut for "<-" is "Alt+-". On an Icelandic layout the key "ö" key is where the "-" is found on the US keyboard layout. If you try to reset a shortcut in an Icelandic layout, both "Alt+ö" are "Alt+-" are detected as "Alt+-". (Note: on an Icelandic Layout "-" is found at the "=" of the US layout).

Removing the default shortcut for "<-" restores ability to type "\" on an Icelandic layout.

I expect there could be other mismatches between keyboard layouts, shortcuts, and behavior, but this is my known example.

Describe the behavior you expected

"Alt+ö" is detected separately from "Alt+-" in shortcuts with an Icelandic keyboard layout.

@ronblum
Copy link
Contributor

ronblum commented Aug 10, 2020

@avsmith Thank you for raising the issue! Agreed, it's possible that there might be other mismatches that we're not accounting for. We've run into similar issues before, for example #2486. We'll review this as we continue development of RStudio. Thanks!

@py9mrg
Copy link

py9mrg commented Oct 30, 2020

Just to add to this issue. I use an English GB keyboard and a lot of shortcuts don't work. Undo yes, Redo no, insert chunk no, etc etc. Actually I just checked and insert chunk does now work - v 1.4.904 - redo still no though, and I would really like redo to work! Haven't checked many others.

@stale
Copy link

stale bot commented Feb 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 4, 2021
@mikebessuille mikebessuille added stale Issues which have been closed automatically due to inactivitiy. and removed wontfix labels Feb 4, 2021
@stale stale bot removed the stale Issues which have been closed automatically due to inactivitiy. label Feb 4, 2021
@ronblum ronblum added the locale internationalization, localization, keyboard, region, and language label Mar 22, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@github-actions github-actions bot added the stale Issues which have been closed automatically due to inactivitiy. label Dec 12, 2021
@ronblum
Copy link
Contributor

ronblum commented Dec 13, 2021

@avsmith and @py9mrg Have you tried by chance the most recent version of RStudio Desktop, Ghost Orchid 2021.09.1+372, and if so is this still an issue?

@stale stale bot removed the stale Issues which have been closed automatically due to inactivitiy. label Dec 13, 2021
@ronblum ronblum removed the encoding label Dec 13, 2021
@py9mrg
Copy link

py9mrg commented Dec 13, 2021

@ronblum afraid not, sorry. Some things are better than they used to be - iirc inserting a pipe never used to work with the default setting but now does. But lots of things still don't, undo (ctrl-z) is fine but redo not. If I change the keyboard to US in Windows then they all do, but not when it's set to British (which is what I've got).

@avsmith
Copy link
Author

avsmith commented Dec 13, 2021

@ronblum I still have the originally noted issue on "2021.09.1 Build 372". I modified my shortcuts, so I was working around the problem and wasn't tracking issue.

If I try to modify the "insert assignment editor" shortcut with an Icelandic keyboard, both "Alt+ö" and "Alt+-" read as "Alt+-". However, if I type "Alt+ö" in the keyboard shortcut search box, it types as "\", which is the proper keyboard stroke.

@ronblum
Copy link
Contributor

ronblum commented Dec 13, 2021

Alright, thank you! I wanted to make sure that we don't automatically close out a keyboard issue that's still occurring. I'm sorry that it's still an issue, and I can't provide a timeframe for addressing it, but at least we'll keep it open.

@finalspy
Copy link

finalspy commented Feb 9, 2022

I can confirm I have this issue on On RStudio Server Pro Version 1.4.1106-5 with an Azerty french layout and alt+6 works but alt+- doesn't despite it's the same key .
https://community.rstudio.com/t/shortcut-alt-6-key-on-french-azerty-keyboard-doesnt-work/128661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug key bindings locale internationalization, localization, keyboard, region, and language
Projects
None yet
Development

No branches or pull requests

5 participants