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

Make shortcuts independent to layouts #121

Closed
JarKz opened this issue Sep 19, 2024 · 4 comments · Fixed by #147
Closed

Make shortcuts independent to layouts #121

JarKz opened this issue Sep 19, 2024 · 4 comments · Fixed by #147

Comments

@JarKz
Copy link
Contributor

JarKz commented Sep 19, 2024

Hi y'all!

I met a problem with shortcuts like Ctrl-C, Ctrl-T and another on layouts other than English because in code gtk4 uses keyval on specific layout. For example, the keyval on any English layouts for letter 'c' returns always 99, but in Belarusian layout - 1747.

I tried to figure out with key codes which are fixed, but can't find any information about it and I don't want to enter into unsafe gtk4 code. So... I gave up with it.

Any idea to fix it?

@gabm
Copy link
Owner

gabm commented Dec 30, 2024

uff not so much.. we should ask the gtk guys.. I have trouble with multi language support :/

@JarKz
Copy link
Contributor Author

JarKz commented Jan 7, 2025

Hi, @gabm , I've researched something and have a question for you. The application it only Linux targeted or should work on Windows as well?

UPD: Later I remembered about MacOS. Is need to consider also that the application ships for MacOS?

@gabm
Copy link
Owner

gabm commented Jan 7, 2025

currently the only users seem to be on Linux. I think even mostly on Wayland.

I read that using gtk on windows is not so easy (?) and i have no idea about MacOS.

I don't want to exclude any platform, but we should focus on Linux.

@JarKz
Copy link
Contributor Author

JarKz commented Jan 7, 2025

That's nice. I've asked gtk4 guys at the matrix and one answered that I can use evdev scancode to match key.

I don't know what is better — use additional config value which activates the independent layout or use it as fallback. What do you think?

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

Successfully merging a pull request may close this issue.

2 participants