[0.13.18] hotkey straight and modifer problem

Bugs that are actually features.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[0.13.18] hotkey straight and modifer problem

Post 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.
My mods on the Factorio Mod Portal :geek:
User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.13.18] hotkey straight and modifer problem

Post by TruePikachu »

`Alt` is not classified as a modifier key in Factorio.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.13.18] hotkey straight and modifer problem

Post 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.
My mods on the Factorio Mod Portal :geek:
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.13.18] hotkey straight and modifer problem

Post 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 ?
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Not a bug”