Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind close to e #31

Open
Nexela opened this issue Sep 3, 2016 · 2 comments
Open

bind close to e #31

Nexela opened this issue Sep 3, 2016 · 2 comments

Comments

@Nexela
Copy link

Nexela commented Sep 3, 2016

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.

@anoutsider
Copy link
Owner

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.

@mickael9
Copy link
Contributor

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 😃)

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants