[Twinsen][0.16.3] Cannot bind to shift+numpad

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.
Post Reply
dewiniaid
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 07, 2017 8:50 pm
Contact:

[Twinsen][0.16.3] Cannot bind to shift+numpad

Post by dewiniaid »

While testing to see if a keybinding option for a possible mod was viable, I tried to bind something to the numpad to see what it shows as. Result: "PAD 4" (etc.)

Trying to bind something to shift+numpad 4 yields "LSHIFT" instead of the expected "SHIFT + PAD 4".

I haven't tested to see what happens if a mod specifically sets "SHIFT + PAD 4" as its default.

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

Re: [Twinsen][0.16.3] Cannot bind to shift+numpad

Post by Twinsen »

Well, this is interesting.
Then you press Shift+Pad 7, windows actually sends the "home" key. I actually didn't even know windows handles the keyboard like that.
The events windows sends me when you press shift+pad 7 is:
1. press shift (user pressed shift)
2. release shift
3. press home (user pressed pad 7)
4. release home (user released pad 7)
5. press shift
6. release shift (user released shift)

Because windows sends me the release shift key event, I can't know if it's because of the user releasing it(because the user wanted to map the shift key) or if windows released it in order to send the home key by it's self.

There is no way I could detect this situation, so either map these keys with numpad off, or avoid using the numpad number keys.

Relevant link:
https://gaming.stackexchange.com/questi ... ifferently

Post Reply

Return to “Minor issues”