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

Hotkeys don't work on some non-English keyboard layouts (Linux) #301

Open
2-www opened this issue Mar 30, 2024 · 9 comments
Open

Hotkeys don't work on some non-English keyboard layouts (Linux) #301

2-www opened this issue Mar 30, 2024 · 9 comments

Comments

@2-www
Copy link
Contributor

2-www commented Mar 30, 2024

using 3.12 on linux, ctrl+z does nothing

@2-www
Copy link
Contributor Author

2-www commented Mar 30, 2024

i tried the english (us) layout and it worked. but it still doesn't work even with polish even though polish is latin

@peterrudenko
Copy link
Member

Can confirm, but not sure how to fix this at the moment

@peterrudenko peterrudenko changed the title can't undo with ctrl+z Hotkeys only work on English keyboard layouts Mar 31, 2024
@2-www
Copy link
Contributor Author

2-www commented Apr 6, 2024

could you add graphical buttons for undo/redo then?

@peterrudenko
Copy link
Member

I've noticed that this only occurs with non-standard layouts, like Polish Dvorak variants,
any standard non-English layouts don't break hotkeys for me (tested on a Debian-based system). What layout are you using and what OS?

Here's one workaround you might try: create a file ~/Documents/Helio/hotkeySchemes.json with a content like this:

{
  "hotkeySchemes": { "hotkeyScheme": { "name": "Default", "group": [
  {
    "receiver": "PianoRoll",
    "keyPress": [
      { "command": "Undo", "key": "Control + '" },
      { "command": "Redo", "key": "Control + Shift + \"" }
    ]
  },
  {
    "receiver": "PatternRoll",
    "keyPress": [
      { "command": "Undo", "key": "Control + '" },
      { "command": "Redo", "key": "Control + Shift + \"" }
    ]
  }
]}}}

This is an example fix for Polish Dvorak, but you might need to tweak key codes depending on what layout you're using. Also it will only work in the latest development build.

@2-www
Copy link
Contributor Author

2-www commented Apr 7, 2024

also debian, and just standard qwerty polish

@2-www
Copy link
Contributor Author

2-www commented Apr 7, 2024

i tried other layouts, they do work, even russian and arabic work, but polish, ukrainian, and hebrew don't

@peterrudenko
Copy link
Member

Weird, they all work for me - I'm suspecting this is some distro-related issue.

I've brought back the undo/redo buttons on the right panel on the desktop in the development build.

You may also try assigning something like "Control + Ż" as described above.

@peterrudenko peterrudenko changed the title Hotkeys only work on English keyboard layouts Hotkeys don't work on some non-English keyboard layouts (Linux) Apr 7, 2024
@2-www
Copy link
Contributor Author

2-www commented Apr 7, 2024

You may also try assigning something like "Control + Ż" as described above.

but ż is altgr+z, would i also need to hold altgr?

@2-www
Copy link
Contributor Author

2-www commented Apr 7, 2024

i removed every layout but polish from the settings.
it started working.
i added more layouts back.
it now works on ukranian, but not on russian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants