Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Richard Shann
On Sat, 2021-11-06 at 16:08 +0200, Lib Lists wrote:
> On Sat, 6 Nov 2021 at 15:56, Richard Shann 
> wrote:
> > 
> > On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > > A last question, is there an existing way to open the Command
> > > Center
> > > via a shortcut? I couldn't find a suitable command in the Command
> > > Center.
> > At present none of the check boxes in the View menu can be
> > activated by
> > a command :(
> > If I can just get my printer working under Mate on Debian I'll
> > hopefully find some time to look into it...

well I won my battle with the printer. I've created a command in Scheme

d-SetViewVisible

which takes one or two arguments: the name of a view window and,
optionally a boolean so e.g.

(d-SetViewVisible "print")
makes the Print View visible while

(d-SetViewVisible "print" #f)

makes the Print View hidden. 

Others are "lilypond" "command" "playback" "midi-in" "scheme".

To get these available via a keyboard shortcut requires creating new
commands using the above syntax for each window so that the shortcut
can be put onto the commands, I'd suggest putting them in the View menu
but hiding them via the Command Center.


Richard





Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
On Sat, 6 Nov 2021 at 15:56, Richard Shann  wrote:
>
> On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > A last question, is there an existing way to open the Command Center
> > via a shortcut? I couldn't find a suitable command in the Command
> > Center.
> At present none of the check boxes in the View menu can be activated by
> a command :(
> If I can just get my printer working under Mate on Debian I'll
> hopefully find some time to look into it...

Thank you, and good luck with the printer :)
Lib

>
>
> Richard
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Richard Shann
On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> A last question, is there an existing way to open the Command Center
> via a shortcut? I couldn't find a suitable command in the Command
> Center.
At present none of the check boxes in the View menu can be activated by
a command :(
If I can just get my printer working under Mate on Debian I'll
hopefully find some time to look into it...


Richard





Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
On Sat, 6 Nov 2021 at 13:55, Richard Shann  wrote:
>
> On Sat, 2021-11-06 at 12:40 +0200, Lib Lists wrote:
> > Hello,
> >
> > I'm trying to create a keyboard shortcut that would toggle (or open)
> > the Print View and then go back to the Denemo editing window, but I
> > cannot find a way to do that. I found 'Print Preview' in the Command
> > Center, but I cannot find how to go back to the Denemo window.
> > Similarly, I'm trying to create a shortcut that toggles between the
> > Command Center and the Denemo window.
>
> Well once the focus is not on the Denemo Display (aka Edit Window) the
> Denemo shortcuts no longer apply so a command to switch back to the
> Denemo Display couldn't be accessed from a shortcut except when already
> on the Denemo Display.
> So instead I've installed signal handlers on the Command Center, the
> Print View and the Source View which all respond to the Esc key by
> switching the focus back to the Denemo Display.
>
> One very strange wrinkle though - the Print View does not respond to
> this keypress the first time until it has responded to something else
> first - pressing down arrow while on the Print View scrolls down, after
> which pressing Esc switches back to the display.
>
> Enjoy!

Wow, thank you, that works perfectly!

A last question, is there an existing way to open the Command Center
via a shortcut? I couldn't find a suitable command in the Command
Center.

Cheers,
Lib

>
> Richard
>
> > Is there a way to achieve that (I'm trying to avoid using the mouse
> > as
> > much as possible)?
> > Thank you for your help,
> > Lib
> >
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Richard Shann
On Sat, 2021-11-06 at 12:40 +0200, Lib Lists wrote:
> Hello,
> 
> I'm trying to create a keyboard shortcut that would toggle (or open)
> the Print View and then go back to the Denemo editing window, but I
> cannot find a way to do that. I found 'Print Preview' in the Command
> Center, but I cannot find how to go back to the Denemo window.
> Similarly, I'm trying to create a shortcut that toggles between the
> Command Center and the Denemo window.

Well once the focus is not on the Denemo Display (aka Edit Window) the
Denemo shortcuts no longer apply so a command to switch back to the
Denemo Display couldn't be accessed from a shortcut except when already
on the Denemo Display.
So instead I've installed signal handlers on the Command Center, the
Print View and the Source View which all respond to the Esc key by
switching the focus back to the Denemo Display.

One very strange wrinkle though - the Print View does not respond to
this keypress the first time until it has responded to something else
first - pressing down arrow while on the Print View scrolls down, after
which pressing Esc switches back to the display.

Enjoy!

Richard

> Is there a way to achieve that (I'm trying to avoid using the mouse
> as
> much as possible)?
> Thank you for your help,
> Lib
> 





Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
Hello,

I'm trying to create a keyboard shortcut that would toggle (or open)
the Print View and then go back to the Denemo editing window, but I
cannot find a way to do that. I found 'Print Preview' in the Command
Center, but I cannot find how to go back to the Denemo window.
Similarly, I'm trying to create a shortcut that toggles between the
Command Center and the Denemo window.
Is there a way to achieve that (I'm trying to avoid using the mouse as
much as possible)?
Thank you for your help,
Lib