question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to hold keys

See original GitHub issue

When I work with a drawing tablet I use the streamdeck for shortcuts. This is mostly fine, but I ran into some limitations. For example in Krita there are a few shortcuts that require a mouse action while a key is held: shift + click-drag to resize the brush, ctrl + mmb-drag to zoom, ctrl + click to sample a color, etc.

Currently, if I press and hold a button on the streamdeck, the associated key(s) get pressed and released, instead of being held.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dodgyrabbitcommented, Feb 23, 2022

Interesting idea. Perhaps this should be the default behaviour? I.e. if you press the Stream Deck button, they keypress combination is pressed. If you release it, the keys are released.

Note that it is possible to have a series of key presses. We would have to decide if it just holds the “last” set of key presses or a specific group.

For example: alt+F4, F11 means press alt and F4, then release them, then press F11 and release F11.

So if we added this hold logic as the default, which keys should be held? Option 1 None of them - only works if there’s one set Option 2 The first group alt+F4 Option 3 The last group F11 Option 4 We add a modifier keyword hold to a group, that means hold this group combination until the key is released. For now, this would only be possible on one group. In theory, we could make it work for multiple groups - but that would mean you need to press the button multiple times to complete a command - which could be confusing.

hold+alt+F4, F11 - this means, press alt then F4 and hold them until the Stream Deck button is released. When released, press F11 and release F11 (no hold).

alt+F4, hold+F11 - this means, press alt then F4 then release them, then press and hold F11 until the Stream Deck button is released. Then release F11.

Syntactically hold can be anywhere in the group. Thoughts?

1reaction
Koppany99commented, Feb 23, 2022

I think your option 4 is the most versatile, but I would like to suggest a few other examples/use cases:

  • if it is a singular set, hold functionality should be the default
  • alt+F4, hold+F11, j - This means press and release alt+F4, press and hold F11 (release it when the streamdeck button is released), then press and release j
  • alt+F4, hold, F11 - This means press and release alt+F4, do nothing until the streamdeck button is released, then press F11.

This would give the user an OnPress - OnRelease functionality. Also, I think a hold alt+F4 syntax would be nice as it can be conceptualized as “dynamic delay”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Key Organizers - Amazon.com
This key organizer can hold up to eight keys and allows you to free up your pockets.This key organizer can hold up to...
Read more >
Key Turners and Grippers for the Disabled and Elderly
If you struggle with gripping, or find daily tasks, such as using keys too fiddly, Ability Superstore's wide range of gripping aids can...
Read more >
The 11 Best Key Holders for EDC in 2022 - Everyday Carry
1 - Ridge KeyCase Key Organizer · 2 - Orbitkey 2.0 Nylon Key Organizer · 3 - KeyBar Key Organizer · 4 -...
Read more >
12 Best EDC Key Organizers in 2022 - HiConsumption
KeyBar Key Organizer​​ The standard included screws hold up to 12 keys, whereas the extension screws allow for an impressive 28-key capacity. In ......
Read more >
Keyport: Best Key Organizer, Key Holder & Keychain Multi-Tool
Shop the best key organizer, key holder, & keychain multi-tools customized for your lifestyle with Keyport's award-winning, modular everyday carry system.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found