14.22 custom-input Fkeys ignore modifiers

This subforum contains all the issues which we already resolved.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

14.22 custom-input Fkeys ignore modifiers

Post by Nexela »

Code: Select all

data:extend
{
    {
        type = "custom-input",
        name = "TESTKEY",
        key_sequence = "SHIFT + F1",
        consuming = "game-only"
    }
}

Code: Select all

script.on_event("TESTKEY", function(event) game.print(event.name) end)
Will trigger on F1, Shift+F1, CONTROL+F1
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: 14.22 custom-input Fkeys ignore modifiers

Post by daniel34 »

I can not reproduce this using the following minimalist example, it only triggers on SHIFT + F1.
customkey_0.0.1.zip
(962 Bytes) Downloaded 52 times
Make sure you didn't change the keybinding in Options --> Controls --> Mods. These keybindings are not saved individually per mod but globally in the config.ini file. If you previously used a mod that set the assignment for TESTKEY to F1 it won't be overridden if a new mod uses the same custom-input name.
quick links: log file | graphical issues | wiki
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: 14.22 custom-input Fkeys ignore modifiers

Post by Nexela »

daniel34 wrote:I can not reproduce this using the following minimalist example, it only triggers on SHIFT + F1.
customkey_0.0.1.zip
Make sure you didn't change the keybinding in Options --> Controls --> Mods. These keybindings are not saved individually per mod but globally in the config.ini file. If you previously used a mod that set the assignment for TESTKEY to F1 it won't be overridden if a new mod uses the same custom-input name.
Funny thing is when I initialy posted this my inputs where all screwed up. but after fixing them I still had this problem. But only if there was nothing else assigned to F1

I will try and re-reproduce again later tonight in a fresh install
User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: 14.22 custom-input Fkeys ignore modifiers

Post by HanziQ »

Is this still an issue?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: 14.22 custom-input Fkeys ignore modifiers

Post by Nexela »

I have not been able to reproduce it, I will chalk it up to I somehow had my keybinds crosswired.
Post Reply

Return to “Resolved Problems and Bugs”