shortcut produced a "command disabled" warning (lyx 1.6.7)

2010-11-26 Thread stefano franchi
Dear all,

If I try to change the  View>pdf(pdfLaTex), View>pdf(XeTeX), and View>pdf
(LuaTeX) shortcuts to, respectively, Ctrl-1, Ctrl-2, Ctrl-3, I always get a
"command disabled" notice in the minibuffer when using them, whereas
selecting the commands from the menu works fine. Looking at the debug output
in the console, it looks like lyx still reads ctrl-3 (e.g.) as
goto-bookmark-3:

GuiWorkArea.cpp(853):  count: 1 text: isAutoRepeat: 0 key: 51
GuiKeySymbol.cpp(621): Getting key 51, with text '
GuiKeySymbol.cpp(627): Setting key to 51,
uiKeySymbol.cpp(642): isOK is 1
LyXFunc.cpp(300): KeySym is 3
GuiKeySymbol.cpp(642): isOK is 1
GuiKeySymbol.cpp(650): isModifier is 0
LyXFunc.cpp(327): action first set to [bookmark-goto]
LyXFunc.cpp(335): action now set to [bookmark-goto]
LyXFunc.cpp(346):  Key [action=bookmark-goto][Ctrl+3]
GuiWorkArea.cpp(853):  count: 1 text:  isAutoRepeat: 0 key: 16777249
GuiKeySymbol.cpp(621): Getting key 16777249, with text ''
GuiKeySymbol.cpp(627): Setting key to 16777249,
GuiKeySymbol.cpp(642): isOK is 1
LyXFunc.cpp(300): KeySym is Control_L
GuiKeySymbol.cpp(642): isOK is 1
GuiKeySymbol.cpp(650): isModifier is 1
LyXFunc.cpp(310): isModifier true


even though my ~/.lyx/bind/user.bind file says:

\unbind "C-2" "bookmark-goto 2"
\unbind "C-3" "bookmark-goto 3"
\unbind "C-1" "bookmark-goto 1"

\bind "C-2" "buffer-view pdf4"
\bind "C-3" "buffer-view pdf5"
\bind "C-1" "buffer-view pdf2"


How can I get rid of the old bindings?

Cheers,

Stefano


Re: Command disabled

2008-08-02 Thread Máté Salát
I've reported it: http://bugzilla.lyx.org/show_bug.cgi?id=5109.

Máté
  - Original Message - 
  From: rgheck 
  To: Máté Salát 
  Cc: Rich Shepard ; lyx-users@lists.lyx.org 
  Sent: Saturday, August 02, 2008 12:37 AM
  Subject: Re: Command disabled


  Máté Salát wrote:
  > By the way, I have another problem around hotkeys. I've created the \bind 
"M-8" "math-delim ( )" hotkey. I realized that after each starting of LyX it 
doesn't consider the first usage of Alt+8, it does only the further ones. It 
has been annoying me for a long time. But now I tried to set up this hotkey 
using the Shortcut Configuration dialog. It made visible the difference between 
the first and the rest presses of Alt+8.
  >
  > To see it, go to modify the shortcut of some function just after starting 
LyX. When the Shortcut field is active press Alt+8 several times. First "Alt+?" 
appears but after it always "Alt+8" comes. I tried this on several computers 
with WinXP. All have the same problem.
  >
  >   
  I'll see if I can get someone to look at this. Can you post it at 
  bugzilla, so it doesn't get lost?

  rh


Re: Command disabled

2008-08-01 Thread rgheck

Máté Salát wrote:

By the way, I have another problem around hotkeys. I've created the \bind "M-8" 
"math-delim ( )" hotkey. I realized that after each starting of LyX it doesn't consider 
the first usage of Alt+8, it does only the further ones. It has been annoying me for a long time. 
But now I tried to set up this hotkey using the Shortcut Configuration dialog. It made visible the 
difference between the first and the rest presses of Alt+8.

To see it, go to modify the shortcut of some function just after starting LyX. When the Shortcut 
field is active press Alt+8 several times. First "Alt+?" appears but after it always 
"Alt+8" comes. I tried this on several computers with WinXP. All have the same problem.

  
I'll see if I can get someone to look at this. Can you post it at 
bugzilla, so it doesn't get lost?


rh



Re: Command disabled

2008-08-01 Thread Máté Salát
Thanks, Rich. You are right. I changed the bookmark hotkeys, and the disabled 
message doesn't appeare any more.

By the way, I have another problem around hotkeys. I've created the \bind "M-8" 
"math-delim ( )" hotkey. I realized that after each starting of LyX it doesn't 
consider the first usage of Alt+8, it does only the further ones. It has been 
annoying me for a long time. But now I tried to set up this hotkey using the 
Shortcut Configuration dialog. It made visible the difference between the first 
and the rest presses of Alt+8.

To see it, go to modify the shortcut of some function just after starting LyX. 
When the Shortcut field is active press Alt+8 several times. First "Alt+?" 
appears but after it always "Alt+8" comes. I tried this on several computers 
with WinXP. All have the same problem.

Máté
  - Original Message - 
  From: rgheck 
  To: Máté Salát 
  Cc: Rich Shepard ; lyx-users@lists.lyx.org 
  Sent: Friday, August 01, 2008 6:52 PM
  Subject: Re: Command disabled


  Máté Salát wrote:
  > Rich,
  >
  > Actually I've specified the hotkey Ctrl+8 but I haven't specified the 
others like Ctrl+1, Crtl+2, ...
  > But as I said the reaction of LyX even for Ctrl+1 and Ctrl+8 is the same 
"Command disabled" text.
  >
  > Anyway, I use WinXP and LyX 1.6.0beta4 (Fri, Jul 11, 2008). If I want to 
specify a new hotkey I use the Shortcut Configuration dialog 
(http://wiki.lyx.org/LyX/NewInLyX16#toc20). The hotkeys made here by the user 
are stored in "C:\Documents and Settings\username\Application 
Data\lyx16\bind\user.bind". For example one line in it is: \bind "C-8" 
"math-delim ( )"
  >
  >   
  The issue may be that these are already declared, here:

  #
  # bookmarks
  #

  \bind "C-~S-1""bookmark-goto 1"
  \bind "C-~S-2""bookmark-goto 2"
  \bind "C-~S-3""bookmark-goto 3"
  \bind "C-~S-4""bookmark-goto 4"
  \bind "C-~S-5""bookmark-goto 5"
  \bind "C-~S-6""bookmark-goto 6"
  \bind "C-~S-7""bookmark-goto 7"
  \bind "C-~S-8""bookmark-goto 8"
  \bind "C-~S-9""bookmark-goto 9"
  \bind "C-M-~S-1""bookmark-save 1"
  \bind "C-M-~S-2""bookmark-save 2"
  \bind "C-M-~S-3""bookmark-save 3"
  \bind "C-M-~S-4""bookmark-save 4"
  \bind "C-M-~S-5""bookmark-save 5"
  \bind "C-M-~S-6""bookmark-save 6"
  \bind "C-M-~S-7""bookmark-save 7"
  \bind "C-M-~S-8""bookmark-save 8"
  \bind "C-M-~S-9""bookmark-save 9"

  The ~S thing means to ignore shift state. So you're getting the disabled 
  thing because the bookmark doesn't exist.

  If you want, you could redefine these to require shift:

  \bind "C-S-1""bookmark-goto 1"

  and then define C-1 etc as you wish.

  rh



Re: Command disabled

2008-08-01 Thread Rich Shepard

On Fri, 1 Aug 2008, Máté Salát wrote:


Anyway, I use WinXP


  Ah, well. I know nothing about Microsoft products.


What do you mean by the hotkey's long form?


  The command to which you are binding the hotkey.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Command disabled

2008-08-01 Thread rgheck

Máté Salát wrote:

Rich,

Actually I've specified the hotkey Ctrl+8 but I haven't specified the others 
like Ctrl+1, Crtl+2, ...
But as I said the reaction of LyX even for Ctrl+1 and Ctrl+8 is the same "Command 
disabled" text.

Anyway, I use WinXP and LyX 1.6.0beta4 (Fri, Jul 11, 2008). If I want to specify a new hotkey I use the 
Shortcut Configuration dialog (http://wiki.lyx.org/LyX/NewInLyX16#toc20). The hotkeys made here by the user 
are stored in "C:\Documents and Settings\username\Application Data\lyx16\bind\user.bind". For 
example one line in it is: \bind "C-8" "math-delim ( )"

  

The issue may be that these are already declared, here:

#
# bookmarks
#

\bind "C-~S-1""bookmark-goto 1"
\bind "C-~S-2""bookmark-goto 2"
\bind "C-~S-3""bookmark-goto 3"
\bind "C-~S-4""bookmark-goto 4"
\bind "C-~S-5""bookmark-goto 5"
\bind "C-~S-6""bookmark-goto 6"
\bind "C-~S-7""bookmark-goto 7"
\bind "C-~S-8""bookmark-goto 8"
\bind "C-~S-9""bookmark-goto 9"
\bind "C-M-~S-1""bookmark-save 1"
\bind "C-M-~S-2""bookmark-save 2"
\bind "C-M-~S-3""bookmark-save 3"
\bind "C-M-~S-4""bookmark-save 4"
\bind "C-M-~S-5""bookmark-save 5"
\bind "C-M-~S-6""bookmark-save 6"
\bind "C-M-~S-7""bookmark-save 7"
\bind "C-M-~S-8""bookmark-save 8"
\bind "C-M-~S-9""bookmark-save 9"

The ~S thing means to ignore shift state. So you're getting the disabled 
thing because the bookmark doesn't exist.


If you want, you could redefine these to require shift:

\bind "C-S-1""bookmark-goto 1"

and then define C-1 etc as you wish.

rh




Re: Command disabled

2008-08-01 Thread Máté Salát
Rich,

Actually I've specified the hotkey Ctrl+8 but I haven't specified the others 
like Ctrl+1, Crtl+2, ...
But as I said the reaction of LyX even for Ctrl+1 and Ctrl+8 is the same 
"Command disabled" text.

Anyway, I use WinXP and LyX 1.6.0beta4 (Fri, Jul 11, 2008). If I want to 
specify a new hotkey I use the Shortcut Configuration dialog 
(http://wiki.lyx.org/LyX/NewInLyX16#toc20). The hotkeys made here by the user 
are stored in "C:\Documents and Settings\username\Application 
Data\lyx16\bind\user.bind". For example one line in it is: \bind "C-8" 
"math-delim ( )"

What do you mean by the hotkey's long form?

Máté 
  - Original Message - 
  From: Rich Shepard 
  To: lyx-users@lists.lyx.org 
  Sent: Friday, August 01, 2008 5:24 PM
  Subject: Re: Command disabled


  On Fri, 1 Aug 2008, Máté Salát wrote:

  > For pressing Ctrl+ LyX says "Command disabled" on
  > the status line, independently of the existence of such a hotkey.
  >
  > What does this message mean? I wanted to set up some custom hotkeys
  > including these.

  Máté,

 Did you specify the hotkey and its long form in your bind file? Mine is in
  ~/.lyx/bind/mybind, and it's a derivative of the emacs.bind file.

  Rich

  -- 
  Richard B. Shepard, Ph.D.   |  IntegrityCredibility
  Applied Ecosystem Services, Inc.|Innovation
  <http://www.appl-ecosys.com> Voice: 503-667-4517  Fax: 503-667-8863

Re: Command disabled

2008-08-01 Thread Rich Shepard

On Fri, 1 Aug 2008, Máté Salát wrote:


For pressing Ctrl+ LyX says "Command disabled" on
the status line, independently of the existence of such a hotkey.

What does this message mean? I wanted to set up some custom hotkeys
including these.


Máté,

  Did you specify the hotkey and its long form in your bind file? Mine is in
~/.lyx/bind/mybind, and it's a derivative of the emacs.bind file.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517  Fax: 503-667-8863

Command disabled

2008-08-01 Thread Máté Salát
Hello,

For pressing Ctrl+ LyX says "Command disabled" on the 
status line, independently of the existence of such a hotkey.

What does this message mean? I wanted to set up some custom hotkeys including 
these.

Cheers, Máté

Re: M-m n ---> command disabled lyx 1.3.2 / gentoo 1.4

2003-11-11 Thread Andre Poenitz
On Mon, Nov 10, 2003 at 07:42:07PM +0100, Holger Doerschel wrote:
> Hello,
> 
> I tried to add a number to a formula with the the following: M-M n 
> 
> But nothing happens. The status-line says: Command disabled

THis only works for displayed formula (create/converted by S-C-m,
LaTeX's \[ or \eqnarray or similar...)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


M-m n ---> command disabled lyx 1.3.2 / gentoo 1.4

2003-11-10 Thread Holger Doerschel
Hello,

I tried to add a number to a formula with the the following: M-M n 

But nothing happens. The status-line says: Command disabled



Any hint


regards

Holger