Why is this grey?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
boonman
Posts: 129
Joined: Fri Mar 30, 2012 1:48 am
Operating System: Please select

Why is this grey?

Post by boonman » Sat Feb 02, 2019 1:28 am

Just curious...

Image

Robert2
Posts: 433
Joined: Wed Feb 22, 2012 6:54 pm
Operating System: Windows 10

Re: Why is this grey?

Post by Robert2 » Sat Feb 02, 2019 11:56 am

Because “Play-at-Speed” on its own is not a command to which you can assign a hot key…

boonman
Posts: 129
Joined: Fri Mar 30, 2012 1:48 am
Operating System: Please select

Re: Why is this grey?

Post by boonman » Sat Feb 02, 2019 1:16 pm

oh...

so why is it there?

Robert2
Posts: 433
Joined: Wed Feb 22, 2012 6:54 pm
Operating System: Windows 10

Re: Why is this grey?

Post by Robert2 » Sat Feb 02, 2019 3:32 pm

Because you searched for “Play-at-Speed” as a command…

boonman
Posts: 129
Joined: Fri Mar 30, 2012 1:48 am
Operating System: Please select

Re: Why is this grey?

Post by boonman » Sat Feb 02, 2019 3:57 pm

So every command appears in the Keyboard Shortcut interface, even if it is actually not possible to make this command into a keyboard shortcut?

why is it there?


> . <

Robert2
Posts: 433
Joined: Wed Feb 22, 2012 6:54 pm
Operating System: Windows 10

Re: Why is this grey?

Post by Robert2 » Sat Feb 02, 2019 4:23 pm

It is a way to tell you that “Pay-at-Speed” is not available as a standalone command. Sometimes we have to use our brains…

boonman
Posts: 129
Joined: Fri Mar 30, 2012 1:48 am
Operating System: Please select

Re: Why is this grey?

Post by boonman » Sat Feb 02, 2019 4:30 pm

hnmm
there must be some programming decision i'm not understanding.

Well, as a feature request, if a command exists in the shortcut editor, yet, it is not allowed to actually receive a shortcut, it'd be nice to show a message to the user:

"Despite the presence of this command in the Keyboard Shortcut Editor, you cannot actually assign a Keyboard Shortcut to it."

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Why is this grey?

Post by steve » Sun Feb 03, 2019 2:19 pm

boonman wrote:
Sat Feb 02, 2019 4:30 pm
there must be some programming decision i'm not understanding.
The command list is not hard-coded into the keyboard preferences, but is generated on demand from the "Command Manager". The Command Manager maintains a list of all commands, including menu items that do nothing except for holding sub-menus (such as "Tracks menu > Add New", and "Extra menu > Play at Speed").

When you view the key bindings by name, without using the "Search" filter, the list of commands is filtered by the default filter, which removes the "do nothing" items.
When you view the key bindings by name and use the "Search" filter, the search filter replaces the default filter and displays all commands that match the specified search text. This includes the "do nothing" commands if they match the specified search text. Examples of this are:
Play-at-Speed - Play-at-Speed
and
Add New - Add New
boonman wrote:
Sat Feb 02, 2019 4:30 pm
"Despite the presence of this command in the Keyboard Shortcut Editor, you cannot actually assign a Keyboard Shortcut to it."
Isn't that superfluous? You can see that "you cannot actually assign a Keyboard Shortcut to it" because it is greyed out.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

boonman
Posts: 129
Joined: Fri Mar 30, 2012 1:48 am
Operating System: Please select

Re: Why is this grey?

Post by boonman » Sun Feb 03, 2019 11:06 pm

>> "Isn't that superfluous? You can see that "you cannot actually assign a Keyboard Shortcut to it" because it is greyed out."

the problem is that, because it was disabled, I assumed there was an app conflict with a global keyboard shortcut hook--perhaps instigated by AutoHotKey or some other app on my PC.

So I assumed that the only reason why an Audacity function would be in the Shortcut Editor AND be Disabled, was because of some external conflict.

Some apps will notify you of a "global keyboard shortcut conflict" in this fashion.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Why is this grey?

Post by steve » Sun Feb 03, 2019 11:27 pm

Audacity does not currently use global keyboard shortcuts, and isn't aware of global shortcuts used in other applications, though the developers have tried to avoid using global shortcuts belonging to the operating system (such as not using Command+M on macOS, as that is the standard shorcut for minimising a window).

I agree that it's a bit surprising that these "do nothing" commands appear. My guess is that they need to be available for the Scripting API (https://manual.audacityteam.org/man/scripting.html), though I've not found any documentation about them. If I can find out the reason, I'll post the info here.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply