wangqr / Aegisub

Win64 nightly builds available at GHA artifact, also at following link:
https://ftp.wangqr.tk/aegisub/
Other
799 stars 49 forks source link

Aegisub doesn't accept non-latin characters as hotkeys #131

Open geoku opened 2 years ago

geoku commented 2 years ago

After giving some thought to https://github.com/wangqr/Aegisub/issues/114 I realised that I was looking at in in a somewhat wrong way. That issue still stands on its own, but there's another issue (probably closely related), resolving which will provide a way around https://github.com/wangqr/Aegisub/issues/114.

The issue is, we are not currently able to map non-latin hotkeys in Aegisub.

My situation: I'm using two input languages I'm constantly switching between, English and Russian.

For example, I want to map an action to Ctrl+W (latin), which equals to Ctrl+Ц (cyrillic) (the cyrillic Ц character shares a key with the latin W character). My natural thought process would be to just map the hotkey as Ctrl+W and expect it to work both with English and Russian input languages active, but it doesn't work, and https://github.com/wangqr/Aegisub/issues/114 is all about that: pressing Ctrl+W will only work with English input language active, and won't work with Russian one.

So my next option would be to map a duplicate hotkey for the same action, but make it specifically Ctrl+Ц (cyrillic), so I would have Ctrl+W and Ctrl+Ц both do the same thing. This will be the way around https://github.com/wangqr/Aegisub/issues/114, but the problem is, Aegisub doesn't seem to accept non-latin characters as hotkeys at all. Can't map them in Aegisub's hotkey settings (typing a non-latin character in a hotkey input field will result in an empty space appearing there). I've also tried manually editing the hotkey.json file. In such case, Aegisub's hotkey settings window will even correctly display anything you entered via editing the file directly, but it will still not work as a hotkey if it's a non-latin character.