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

Hotkeys for Layer Selection #1998

Open
TroutNemesis opened this issue Jun 10, 2020 · 9 comments · Fixed by #3776
Open

Hotkeys for Layer Selection #1998

TroutNemesis opened this issue Jun 10, 2020 · 9 comments · Fixed by #3776
Labels
feature Adding functionality that adds value

Comments

@TroutNemesis
Copy link

Is your feature request related to a problem? Please describe.
It is distracting when I have to look away from what I'm currently working on to click on a button to swap my layer.

Describe the solution you'd like
I would like hotkeys for each of the layers including the VBL. This way I can focus on the map and not on clicking buttons.

Describe alternatives you've considered
A workable alternative would be a single hotkey which cycled through the layers. This is less desirable as I would have to repeat the same hotkey to get to a desired layer. And if I miss the layer I have to cycle around again.

@TroutNemesis TroutNemesis added the feature Adding functionality that adds value label Jun 10, 2020
@taustinoc
Copy link

Another option would be a macro command to change the selected layer, since macros can have user assigned hotkeys.

@adventuremagic123
Copy link

adventuremagic123 commented Jun 13, 2020

I have to say that one thing I like and mostly hate are hotkeys. This is a problem in Windows and other programs. If you make a typo using hotkeys, you have NO idea what you've done. Should you save your file or dump it and start over?

Rather Windows and applications should allow ALL of the hotkey sequences they support to be individually enabled or disabled. I don't use about 90% of the hotkey combinations available.

@icarean
Copy link

icarean commented Oct 23, 2022

Arrived here while searching for the feature requested by TroutNemesis. I agree this would be useful. Something like 1, 2, 3, 4, and 5 (or CTRL-1 etc) to select between Token, Hidden, ... and VBL layers would be handy and save the frustration of moving the mouse over to the top right and top bar to switch layers. Those hotkeys should only switch layers when the user is on the map with no dialogue boxes open (i.e., it should switch layers when mapping, but not when entering token names or hitpoints etc).

I've been searching the list of macro functions and experimenting, but there doesn't seem to be a way to do this by macro. You can move a token to another layer, but it doesn't seem you can switch the user interaction to a new layer. So there's no workaround I can identify.

@thelsing
Copy link
Collaborator

Ok what should the hotkey be? My vote is still on CTRL-1 - 5.

@TroutNemesis
Copy link
Author

CTRL-1 - 5 would be great! I'm open to any solutions. hotkeys for various tools would be awesome. Layers would be particularly helpful.

@kwvanderlinde
Copy link
Collaborator

In GIMP we can use Page Up / Page Down keys to go up / down through layers. I like that idea in terms of the direction being intuitive. Downside of course would be not being able to jump to a specific layer.

@Phergus
Copy link
Contributor

Phergus commented Dec 26, 2022

Or we could do both. Hotkeys to specific layers and page up/down for shifting up/down by one.

@thelsing
Copy link
Collaborator

page up/page down is still available. CTRL-1-5 too. So we can do both.

@icarean
Copy link

icarean commented Jan 3, 2023

Where there's some sensible overlap, it could be useful to have similar hotkeys to other apps to make learning the hotkeys as simple as possible. However...

The number keys don't do anything when you're just on the mapping window, and not having to press CTRL is one less hand-twist-key-combo. So personally I'm in favour of:

  • Pressing 1 switches the interface to the Token layer (and unless you were already on the Token layer, deselects any previously selected things).
  • Pressing CTRL-1 moves any selected things to the Token layer and switches the interface to the Token layer.
    Just numbers has potential to be confusing if someone thinks they're typing something e.g. in the chat but weren't clicked on the chat, but I think that wouldn't end up too confusing for anyone and would make it really quick and easy to jump between layers.

I agree with also having PG UP and PG DN as an additional method to cycle between layers, as others have suggested.

If the devs have any intentions of adding other editable layers (e.g., FoundryVTT has additional layers such as overhead tiles, weather, and effects), or rearranging any existing features (e.g. if the VBL were to be included in the set of layers selectable with these hotkeys), then now would be a useful time to ensure the layer numbers match the hotkeys so we don't have to relearn what number matches to what layer down the track. This might just mean for now leaving some gaps in the numbering in planning for layers not yet implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants