[0.12.24][Twinsen] Chat / Console Key - UK Keyboard

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
User avatar
yngndrw
Inserter
Inserter
Posts: 38
Joined: Tue Mar 01, 2016 12:14 pm
Contact:

[0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by yngndrw »

By default when using a UK keyboard the console / chat key is bound to the @ / ' key (Next to : / ; and near to the Enter key). When you're trying a message and you press ', the chat closes which is really annoying. It would be nice if the key defaulted to a better key on these keyboards, such as the ` / ¬ / ¦ key next to the 1 key. (KEY190 - This also matches the default console key for any of the Source engine games)

It would also be nice if the binding screen showed the current key better for chat / console rather than "KEY##", as it takes a while to work out what key it's bound to.
Last edited by yngndrw on Tue Mar 01, 2016 4:20 pm, edited 1 time in total.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by daniel34 »

This is not only an issue on UK keyboards, but on German layout too.
The chat key is bound by default to the ö key. It should be the key left from 1, which on German keyboards is ^ and °.

Problem with that is that factorio lists that key as BACKSLASH and that there are some issues binding to that key, like it doesn't write the first character if it is a vowel, as the ^ is used to accentuate vowels, like ê. Or it writes ^ as the first character automatically: opening the console, typing something, closing the console with ^ and reopening it will automatically type ^ into the console.
quick links: log file | graphical issues | wiki

kovarex
Factorio Staff
Factorio Staff
Posts: 8173
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by kovarex »

Do you still write the ~ (tilde) character by the key left from 1? If so it might be just allegro error of not taking the different keycodes on different keyboard settings into consideration.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by daniel34 »

kovarex wrote:Do you still write the ~ (tilde) character by the key left from 1? If so it might be just allegro error of not taking the different keycodes on different keyboard settings into consideration.
No, on german keyboards the tilde key can only be written using the Alt Gr (right Alt) key and is placed on a completely different key, which is usually used for + (lowercase) and * (uppercase).

The key next to 1 is displayed as BACKSLASH, the Ö key is KEY60 (default Factorio setting) and the tilde key is KEY62. I usually set it to that key (KEY62), but have to enter + in console using the numpad, as it would close the console otherwise.

This picture should explain it better:
Image
quick links: log file | graphical issues | wiki

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5221
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by Klonan »

For reference this is the UK keyboard:
Image

However the #~ key doesnt open the console, the '@ key does (by default)

Twinsen
Factorio Staff
Factorio Staff
Posts: 1348
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by Twinsen »

Does any game handle accent keys(dead keys) properly?

For example, I think using ^ on the German keyboard will never work:
1. because if you want to type "âêîô", you can't, because pressing ^(to toggle the accent) will close the console.
2. pressing ^ will open the console and also toggle the accent, leading to silly situations like accenting the first letter.

User avatar
Phillip_Lynx
Filter Inserter
Filter Inserter
Posts: 541
Joined: Mon Jul 21, 2014 6:00 pm
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by Phillip_Lynx »

Twinsen wrote:Does any game handle accent keys(dead keys) properly?

For example, I think using ^ on the German keyboard will never work:
1. because if you want to type "âêîô", you can't, because pressing ^(to toggle the accent) will close the console.
2. pressing ^ will open the console and also toggle the accent, leading to silly situations like accenting the first letter.
properly? no, but it works :) Even the ^ on the german keyboard (I use this key, it is only very tricky if I have startet my autoklicker wich also uses this key and I forgot about it :D)

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by daniel34 »

Twinsen wrote:Does any game handle accent keys(dead keys) properly?

For example, I think using ^ on the German keyboard will never work:
1. because if you want to type "âêîô", you can't, because pressing ^(to toggle the accent) will close the console.
2. pressing ^ will open the console and also toggle the accent, leading to silly situations like accenting the first letter.
The ^ key usually opens the console in most games (personal experience), but to close it you need to press ESC. Factorio already closes it on ESC, but also on the console open key. The solution would be to only close the console when ESC is pressed, making it possible to move the chat/console key to any key (letter keys for example).

I wouldn't know what key to put the console on with a german keyboard, as most keys could also be needed for text-input and other keyboard layouts might give the same problem.

EDIT: this was also a bug with the unreal engine:
https://answers.unrealengine.com/questi ... erman.html
quick links: log file | graphical issues | wiki

User avatar
yngndrw
Inserter
Inserter
Posts: 38
Joined: Tue Mar 01, 2016 12:14 pm
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by yngndrw »

Looks like this one is a right can of worms !

Twinsen
Factorio Staff
Factorio Staff
Posts: 1348
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by Twinsen »

I'm afraid I will move this to minor issues.

[Technical]
Basically each windows keyboard layout has its own way of mapping special keys such as grave(`), sometimes mapping different codes to the same symbol(grave is key code 192 on US layout, but code 223 on UK layout).
This is all a big mess to fix. It requires me to rewrite allegro to detect the selected keyboard layout and map codes differently according to some magic tables.
[/Technical]

The proper solution for now is to just let people rebind it to whatever they like, especially those for which the console key is a dead key(French keyboards?)

User avatar
yngndrw
Inserter
Inserter
Posts: 38
Joined: Tue Mar 01, 2016 12:14 pm
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by yngndrw »

In that case please consider the simpler change that daniel34 suggested in the meantime - You can open the console with whatever key it's bound to but can only close it by pressing return or escape. If you want to cancel your input, just delete everything and hit return or hit escape.

You could also ignore any accent character for the first input character, because as I understand it the accents come after the letter in Unicode ?

Koub
Global Moderator
Global Moderator
Posts: 7722
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: [0.12.24][Twinsen] Chat / Console Key - UK Keyboard

Post by Koub »

On French layout the left most key on number row is ² :)
Koub - Please consider English is not my native language.

Post Reply

Return to “Minor issues”