advanced-logistics-system
advanced-logistics-system copied to clipboard
bind close to e
I believe if you set consuming to none in your input prototype it will still pass the keypress to factorio. I use it in one of my mods to close the gui with e.
Setting it to none will just let the default behavior work, so you'd press E and the GUI will close but the inventory will also open.
I feel that's not an ideal way of doing it tbh.
I also liked the idea of using the e key to close any GUI but also open the inventory if no GUI is opened (with the possibility to use the same key for every mod) but unfortunately this can't be done as I described here: https://forums.factorio.com/viewtopic.php?f=28&t=31221 (feel free to weigh in :smiley:)
The best solution I found for now is to have a dedicated close key (I use h) that doesn't trigger any game action so none and game-only both work (they'll share the key with different mods).