[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] d-LoadKeybindings
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] d-LoadKeybindings |
Date: |
Sun, 14 Mar 2010 16:31:36 +0000 |
I have used this
<?xml version="1.0"?>
<Denemo>
<merge>
<title>A Denemo Command Set</title>
<author>AT, JRR, RTS</author>
<map>
<row>
<action>Diminish</action>
<bind>KP_Subtract</bind>
</row>
</map>
</merge>
</Denemo>
Successfully, but at first I was seeing your bug: it failed to put a
binding onto the Diminish menu item. I tracked this through and it was
finding a command of that name and calling the routine to attach the
keybinding. I did various things - fetched the script etc. Then it
started working.
I thought perhaps this was because I had executed the command, or
fetched the script or something. So I re-started, getting rid of
my .denemo and executed the above (but with KP_Add as the default
already has KP_Subtract) and it worked, adding the shortcut and stealing
off the previous command.
So, I don't think you are going mad, but I don't know how to reproduce
the bug:(
Richard
On Sun, 2010-03-14 at 14:00 +0100, Nils Gey wrote:
> What exactly does this command do?
>
> Is it possible that it does not work for commands defined in scheme?
> It does not load the keybinding even if the same command is already in the
> basic commandset (without a keybinding)
>
> Nils
>
> <?xml version="1.0"?>
> <Denemo>
> <merge>
> <title>A Denemo Command Set</title>
> <author>AT, JRR, RTS</author>
> <map>
> <row>
> <action>Diminish</action>
> <scheme></scheme>
> <menupath>/ObjectMenu/NotesRests</menupath>
> <label>Diminish</label>
> <tooltip>Diminishs the note/chord/rest. Quarter Note becomes Eight
> Note. </tooltip>
> <bind>KP_Subtract</bind>
> </row>
> </map>
> </merge>
> </Denemo>
>
>
> On Sun, 14 Mar 2010 12:16:54 +0000
> Richard Shann <address@hidden> wrote:
>
> > Nils,
> > I have just executed
> >
> > (display (d-LoadKeybindings
> > "/home/rshann/git-denemo/denemo/actions/keyb"))
> >
> > where keyb is a file containing this:
> >
> > <?xml version="1.0"?>
> > <Denemo>
> > <merge>
> > <title>A Denemo Command Set</title>
> > <author>AT, JRR, RTS</author>
> > <map>
> > <row>
> > <action>Quit</action>
> > <label>Quit</label>
> > <bind>z</bind>
> > <tooltip>Quit the Denemo program</tooltip>
> > </row>
> > </map>
> > </merge>
> > </Denemo>
> >
> > And the result is it displays #t and the Quit command gets the *extra*
> > keybinding z
> >
> > Can you repeat this test?
> >
> > Richard
> >
> >
> >
> >
> > _______________________________________________
> > Denemo-devel mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/denemo-devel
> >