FrancescoCeruti / linux-show-player

Linux Show Player - Cue player designed for stage productions
https://linux-show-player.org
GNU General Public License v3.0
205 stars 49 forks source link

Request: Cue Shortcut Key <esc> #160

Closed Mr-Si closed 5 years ago

Mr-Si commented 5 years ago

Hi there,

I have been trying to use the "Escape" button on the keyboard as a shortcut command key for interrupting one or all cues in the form of a panic button, a bit like QLab does by default, but I have been unsuccessful so far in getting the software to recognise the key when I'm trying to create it.

Is there a way you can instruct me in how to do this? or is not a key that is allowed to be used in LiSP?

Many thanks, Simon

FrancescoCeruti commented 5 years ago

Hi Simon,

unfortunately right now the only accepted keyboard shortcuts (for controlling the cues) are those made of "typeable" characters, so mostly letters and numbers. I'll try to allow special characters or key sequences for next release.

Mr-Si commented 5 years ago

Thank you Francesco, I appreciate that greatly!

Sent with GitHawk

Gajenthran commented 5 years ago

I see that this feature was added to the v0.6 milestone, so I would like to know if it's better that I let you work on that, @FrancescoCeruti ?

For this feature, my idea was to add two commands: one with a combobox (with special character) and another with a textarea where we can put a letter as we can see on the actual version.

An exemple of that:

Capture d’écran 2019-03-20 à 16 25 29

In this example, we can also add key sequences : if we choose Escape, there will be no second word but if we choose CTRL, we have to write a second word (I forgot to add "None" in the combobox if we only want to use letters and numbers).

FrancescoCeruti commented 5 years ago

I was thinking to use the QKeySequenceEdit widget, It's more flexible and should handle all the reasonable scenarios (CTRL, SHIFT, ALT, CMD (Mac), Meta (windows key), F1-F12)

Gajenthran commented 5 years ago

Oh ! I search about QKeySequenceEdit: it will more efficient than what I said and appropriate to what we want to do (actually i'm learning PyQt with you app, I didn't know the existence of this method).

fnetX commented 5 years ago

Yeah, flexibility sounds great. The method proposed by @Gajenthran didn't really cover scenarios like only the w or ctrl + shift + w for water background :-)

Edit: I just read that you wanted to add none, but still the second thing won't work.

FrancescoCeruti commented 5 years ago

It's now possible (develop branch) to use generic keys, and key-combinations :-)