Jaz

[Preview][Linux]Keyboard layout not respected for keybinds

Recommended Posts

On Linux, the preview client does not respect the system keyboard layout for keybinds.

For example I have the "Examine" set to "Z" which is swapped with "Y" on my layout. 

In chat windows etc. the layout is fine but I need to use the "Y" key (which is the UK/US "Z") to get the "Examine" action instead of my "Z".

Share this post


Link to post
Share on other sites

It happens because keybinds on Preview are key based, not character based - basically it's just the display of the bind in the right-click menu and in the settings that's wrong, not the functionality, I'll see about fixing it.

Binding through console might be a bit tougher since the client is not aware what character corresponds to what key in your keyboard layout, will check if there's any viable fix for that - keep in mind the quickbind feature can often be quicker and easier than doing it by console.

Share this post


Link to post
Share on other sites

If I set a bind with a long press of Z, I get a Y in the Rclick menu - I need to press Z of course but that is really misleading. Might be much more confusing for all those layouts where the numbers are pressed by using shift or for example French layout where quite all the keys are moved around on the table.

Share this post


Link to post
Share on other sites

Fixed in today's update, haven't had a chance to test it on Linux though - let me know if it's good now.

Share this post


Link to post
Share on other sites

Hmm.. how do I download the new preview client for Linux? 

Share this post


Link to post
Share on other sites

Tried it - the long-press issue seems to be fixed: if I set a keybind to "Z" that way it shows correctly as such and the action is played correctly.

But setting keybinds in console is broken:

 

FQgNctT.png

 

Which means if I set "bind Z close" it will show up as "Y" in the context menu and I need to use Y there. 

Looks like the console setting is not taking account the actual keyboard layout but the English one.

Share this post


Link to post
Share on other sites
3 hours ago, Jaz said:

Which means if I set "bind Z close" it will show up as "Y" in the context menu and I need to use Y there. 

Looks like the console setting is not taking account the actual keyboard layout but the English one.

 

Seeing the same here.

Share this post


Link to post
Share on other sites

That'll remain the case for now, quickbinds and the settings are the recommended way to set keybinds - console shows raw text, it can't really detect keys from the characters, just the other way (if that makes sense)

Share this post


Link to post
Share on other sites

Was there a change how the keys are read? It works flawlessly with the stable client both in console window and quickbinds. There are keybinds that cannot be set with quickbind (for example Examine in my case as I prefer the Examine context menu options being hidden), and swapping/backing up keyfiles suffer from this issue as well.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now