Page 1 of 1

14.22 custom-input Fkeys ignore modifiers

Posted: Mon Apr 03, 2017 8:57 am
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

Re: 14.22 custom-input Fkeys ignore modifiers

Posted: Mon Apr 03, 2017 10:29 am
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 51 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.

Re: 14.22 custom-input Fkeys ignore modifiers

Posted: Mon Apr 03, 2017 12:42 pm
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

Re: 14.22 custom-input Fkeys ignore modifiers

Posted: Mon May 22, 2017 3:48 pm
by HanziQ
Is this still an issue?

Re: 14.22 custom-input Fkeys ignore modifiers

Posted: Mon May 22, 2017 4:52 pm
by Nexela
I have not been able to reproduce it, I will chalk it up to I somehow had my keybinds crosswired.