Issue765

Title Alt key not working properly
Priority bug Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2014-09-28 01h29 by jesusalva, last changed by fluzz.

Messages
Author: jesusalva Date: 2014-09-28   01h29
I'm using a laptop to run the level editor. as you know, laptops doesn't have a
numpad (with a few exceptions, mine, as various, don't have). So, months, no,
years ago I've choosen to change the numpad use to something 'better' in my view
point: I've changed it to 'Alt'+ the number that should be included.

But now, I have a problem. Although it was running finely some time ago*, now it
is NOT working: No matter how much I press Alt+key. And, when I choose to change
and pressed 'Alt+5' (by example), it wrote: 5. And changed the *correct* 5.

What does that mean? ...means that Alt key is not working, at least with
numbers. This is a problem.
i've read that developers were going to change the read method to read the
unicode instead of the key. I think that this might be the problem, but I'm not
sure.

Best regards,
jesusalva.

* some time ago is, um, on August 30th, I think. I only know precisely (because
of commits on a local branch) that it worked properly in June 28th.
Author: greg Date: 2015-05-28   11h58
I would guess it is because the game was previously using raw keyboard input so
it could grant Alt+number a meaning. But now the keyboard input are translated
to actual key and Alt+number doesn't produce anything more than a single number
Author: jesusalva Date: 2015-05-28   15h39
Yes, youre right.
Proposed fix: let the player chose if 
s/he wants keyboard input to be 
translated (reccomended) or not.

Unsure if this still affect me, last time 
I used map editor was half year ago.
Author: greg Date: 2015-05-28   17h01
without keyboard translation, you presume about the player keyboard and if this
presumption is wrong, it can surprise the player.

You can set a new keyboard mapping by assigning a new character to a new
keyboard combination, but I don't know if it is a good solution.
Author: jesusalva Date: 2016-08-05   23h02
greg, I think the correct way is to ask to system the keyboard layout and use
raw input... Even if I might be wrong, I don't think translating the keyboard
combination actually is a good idea as it seems....

Or displaying translated input and using raw input. Those probably would solve
both problems. After all, if I understood correctly, problem is displaying wring
characters on screen...
Author: jesusalva Date: 2017-10-21   08h58
Patched in http://rb.freedroid.org/r/2362/
Author: fluzz Date: 2018-03-06   16h28
Fixed in commit 6423bb39f
History
Date User Action Args
2018-03-06 16:28:35fluzzsetstatus: open -> resolved
assignedto: fluzz
messages: + msg3546
2017-10-21 08:58:14jesusalvasetmessages: + msg3494
2016-08-05 23:02:56jesusalvasetmessages: + msg3337
2015-11-23 18:13:41fluzzsetpriority: release-blocker -> bug
2015-05-28 17:01:08gregsetmessages: + msg3180
2015-05-28 15:39:49jesusalvasetmessages: + msg3179
2015-05-28 11:58:58gregsetmessages: + msg3178
2014-09-28 01:30:19jesusalvasetnosy: + fluzz
2014-09-28 01:29:02jesusalvacreate