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

Change: add support for next/previous railtype global hotkeys #7851

Open
wants to merge 1 commit into
base: master
from

Conversation

@grossws
Copy link

grossws commented Dec 1, 2019

This patch adds support for next/prev railtype global hotkeys which are basically autorail + special modifier which selects previous or next available railtype.

Such behaviour is useful for players who use PURR, Useless Tracks and similar NewGRFs for quick selection.

I use PURR with semantic tracks coloring (e.g. white purr for waiting bays, red purr for prio zones etc).

Current patch binds this feature to GLOBAL+[ and GLOBAL+] but maybe I should leave them unbound, so only those who need it will bind them.

Signed-off-by: Konstantin Gribov grossws@gmail.com

@grossws grossws changed the title Change: [add support for next/previous railtype global hotkeys Change: add support for next/previous railtype global hotkeys Dec 1, 2019
@grossws grossws force-pushed the grossws:change-prev-next-railtype-hotkeys branch from ff01b43 to f29dd26 Dec 1, 2019
src/widgets/rail_widget.h Outdated Show resolved Hide resolved
This patch adds support for next/prev railtype global hotkeys which are basically autorail + special modifier which selects previous or next available railtype.

Such behaviour is useful for players who use PURR, Useless Tracks and similar NewGRFs for quick selection.

I use PURR with semantic tracks coloring (e.g. white purr for waiting bays, red purr for prio zones etc).

Current patch binds this feature to `GLOBAL+[` and `GLOBAL+]` but maybe I should leave them unbound, so only those who need it will bind them.

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
@grossws grossws force-pushed the grossws:change-prev-next-railtype-hotkeys branch from f29dd26 to c42996b Dec 1, 2019
@nielsmh

This comment has been minimized.

Copy link
Contributor

nielsmh commented Dec 2, 2019

This needs to be tested with keyboard layouts where the [ ] characters are on AltGr combinations with the number row. (Several continental European layouts.)

@grossws

This comment has been minimized.

Copy link
Author

grossws commented Dec 2, 2019

@nielsmh, I tested it on Linux w/ SDL2 and default German layout where [/] are on AltGr+8/9. Hotkeys work as expected when PR #7850 is applied, on same keys where [/] are on US layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.