foundryvtt-gmScreen icon indicating copy to clipboard operation
foundryvtt-gmScreen copied to clipboard

Keybinding to show/hide GM Screen

Open apoapostolov opened this issue 4 years ago • 5 comments

For GMs used to keyboard bindings, to quickly show, check something and close GM Screen For example, Q. But should be configurable, so left-handed people ca use P or O.

apoapostolov avatar Dec 10 '20 12:12 apoapostolov

One of my original ideas was: "Bind GM screen to spacebar, rebind pause" have two modes: Toggle and Hold.

You could press space to pull the screen up, look at something, click some stuff, and then unpress and the whole thing would just effortlessly glide up and down.

Definely am going to make it configurable whatever ends up happening.

akrigline avatar Dec 10 '20 13:12 akrigline

The hold mode is an awesome idea! I am really looking forward to see it :)

winterwulf avatar Mar 03 '21 15:03 winterwulf

This would be pretty easy to do if you use Library: DF Hotkeys

Something like this would work:

// Show only while key is held down
hotkeys.registerShortcut({
	name: 'foundryvtt-gmScreen.toggle-screen',
	label: 'Show GM Screen',
	default: { key: hotkeys.keys.KeyQ, alt: false, ctrl: false, shift: false },
	onKeyDown: self => { /* Show GM Screen*/ },
	onKeyUp: self => { /* Hide GM Screen */ },
});
// Toggle open/closed whenever the key pressed
hotkeys.registerShortcut({
	name: 'foundryvtt-gmScreen.toggle-screen',
	label: 'Show/Hide GM Screen',
	default: { key: hotkeys.keys.KeyQ, alt: false, ctrl: false, shift: false },
	onKeyDown: self => { /* Toggle display of GM Screen*/ },
});

flamewave000 avatar May 05 '21 22:05 flamewave000

With core keybindings in v9, we should be able to knock this out easily

akrigline avatar Dec 19 '21 15:12 akrigline

this would be just incredible

vitorefazevedo avatar May 03 '22 01:05 vitorefazevedo