Page 1 of 1

[0.13.18] hotkey straight and modifer problem

Posted: Thu Aug 25, 2016 9:09 pm
by binbinhfr
Hi,

if I wrote something like that :

Code: Select all

data:extend(
	{
		{
			type = "custom-input",
			name = "effic_hotkey_reset",
			key_sequence = "ALT + b",
			consuming = "script-only"
		},
		{
			type = "custom-input",
			name = "effic_hotkey_on_map",
			key_sequence = "b",
			consuming = "script-only"
		},
	}
)
it seems that when I press ALT+b, the "b" event is fired.
Is it normal ?

EDIT : when I look in the oprions/control, it seems that the ALT+B event exists, but the seuqence key is undefined. I can define it manually and then it works.

Re: [0.13.18] hotkey straight and modifer problem

Posted: Thu Aug 25, 2016 11:52 pm
by TruePikachu
`Alt` is not classified as a modifier key in Factorio.

Re: [0.13.18] hotkey straight and modifer problem

Posted: Fri Aug 26, 2016 7:18 am
by binbinhfr
TruePikachu wrote:`Alt` is not classified as a modifier key in Factorio.
???

Strange. Why do you say that ? It works on another of my mods (Zoom) that uses ALT-Z to unzoom, while the Z key is used to move in my game. And both are working separately.

Re: [0.13.18] hotkey straight and modifer problem

Posted: Fri Aug 26, 2016 7:56 am
by binbinhfr
I just made a little change that seems to resolve the problem :
ALT +b to ALT + B and it works...

Both B and ALT+B are detected separatly.
Is it normal ?