Mac OS keyboard shortcut to toggle two menu items - macos

I am working on a dedicated keyboard shortcut controller for a specific app, Avid's Pro Tools. There is a default keyboard shortcut that toggles the view of two windows, "Mix" and "Edit."
Both of these commands have entries on the Window menu in the app. However, there is a little check next to the window that is active, and a little diamond next to the window that isn't. So these switch as the window is toggled (by the single keyboard shortcut).
I'm looking for a way to program a different key using the Mac OS System Application shortcuts. When I assign a new keyboard shortcut to the "Mix" and "Edit" menu items, I don't get the toggle behavior, it just causes the first item in the menu to be active. This makes sense, as it is getting two commands at once. To get the behavior I want now I have to use two keyboard shortcuts, which breaks a UI convention in Pro Tools. Any suggestions appreciated!

Related

Adding Keybinds to Windows10 Right-Click Context Menu?

I work at a Japanese company and we all use Windows 10. I am used to using keybinds after rightclicking for a pop up Context Menu. At home, my PC does not show any keybind options when I do the same thing.
The Japanese image below in not mine, but an example for reference. You can see that "Eject" (取り出し) has a keybind marked as (J).
Is there any option to add this feature to my PC? I have searched everywhere to no avail.
With Keybinds
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Without Keybinds
Thank you in advanced.
They are there but hidden by default when you use the mouse. If you open the context menu with the keyboard (the context menu key or Shift+F10) then they should be underlined.
Starting with Windows 2000, keyboard indicators such as underlined accelerators and focus rectangles (collectively known as “keyboard cues”) are hidden by default, and are revealed only when you start using the keyboard. You can control this behavior from the Desktop Control Panel, under Appearance, Effects, “Hide underlined letters for keyboard navigation until I press the Alt key”.

How to disable the Win key if it's the only key being pressed using AutoHotkey?

I often find myself tapping the Win key by mistake, how to disable it when it's the only key being pressed using AutoHotkey?
In other words, tapping Win shouldn't bring up the start menu, but the Win key combination shortcuts should still work, e.g. pressing Win+X should open the quick link menu.
Quote from #MenuMaskKey:
The Start Menu (or the active window's menu bar) can be suppressed by sending any keystroke. The following example disables the ability for the left Win to activate the Start Menu, while still allowing its use as a modifier:
~LWin::Send {Blind}{vkE8}
Quote from Blind mode:
The Blind mode can be enabled with {Blind}, which gives the script more control by disabling several things that are normally done automatically to make things work as expected.
~LWin::Send {vkE8} may not work in some cases without {Blind}.

Cocoa application Enter Full Screen no keyboard shortcut shown

I have a Cocoa application. In the View menu, the system adds an Enter Full Screen menu item. In other applications I see that this menu item has the keyboard shortcut ^⌘F. However in my application this keyboard shortcut is not shown in the menu and unsurprisingly this key combination does not enter full screen.
Interestingly, this keyboard shortcut, although shown in other applications, does not work.
How do I debug and/or fix this?
Any new Xcode application should get the View menu with Enter Full Screen already setup.
You can add the Key command in the Attributes Inspector.
If the key command doesn't work in ANY application, then that's likely a non-programming problem: most likely a conflict with a duplicate key command that's been configured.
Check System Preferences > Keyboard > Shortcuts > App Shortcuts.

How to unbind Command-Control-Space key from Mac OS X 10.9?

How can I unbind Command-Control-Space from Mac OS X 10.9?
This shortcut shows Special Characters table and conflicts with my Emacs key binding, and I couldn't disable it from System Preference->Keyboard->Shortcuts.
Thanks.
At least on macOS Sierra to macOS Big Sur ⌃Space is the default binding for Select the previous input source which is on by default (even if only one input source is activated).
You can free it by:
Open System Preferences
Go to Keyboard > Shortcuts > Input Sources
Untick "Select the previous input source"
Afterwards, you should be able to bind it as expected.
You can create custom keyboard shortcuts for most app's menubar choices in System Preferences. If a desired key combination is losing precedence to a default shortcut that you don't use and can't easily disable, simply override it with a new, unobtrusive shortcut.
Open System Prefs / Keyboard / Shortcuts. Select App Shortcuts from the left pane. Toggle the All Applications category's triangle in the main window to point downward (if it's not open already).
If there's an item named Emoji & Symbols* shown there, then click its shortcut combination and enter a new shortcut (such as option-shift-command-t, in this case).
If there's not an item named Emoji & Symbols under All Applications, click the + button at the bottom, type or copy-paste Emoji & Symbols, and then enter a new keyboard shortcut (option-shift-command-t, or anything really). This will free the control-command-space combination for you to use as a specialized shortcut elsewhere.
To remove your custom shortcut, just click to highlight it in the main window of this preference pane, and click the – button at the bottom. The custom shortcut will disappear and the default action will resume.
*Note: On versions older than Mac OS 10.10.3, the menu item is called Special Characters… instead of Emoji & Symbols.
I don't know of any way to disable this, but an alternative option might be to create a shortcut for the app you want to use that in. I created a Command-Control-Space shortcut for Chrome and now Command-Control-Space doesn't bring up the special character palette anymore in Chrome.
failing that you may be better off asking in Apple Stackexchange

How to tab focus onto a dropdown field in Mac OSX

In Windows, in any windows form or web browser, you can use the tab button to switch focus through all of the form fields.
It will stop on textboxes, radiobuttons, checkboxes, dropdown menus, etc.
However, in Mac OSX, tab skips dropdown menus. Is there anyway to change this behavior, or access the above items mentioned, without using a mouse?
Go to System Preferences > Keyboard and Mouse, then choose Keyboard Shortcuts. At the bottom, ensure Full Keyboard Access is set to "All controls". It's a long time since I turned it on but I think that's all you need to do
Apple Menu > System Preferences > Keyboard & Mouse > Keyboard Shortcuts:
Change the radio button at the bottom from "Text boxes and lists only" to "All controls."
Edit: Dammit. We're a fast group around here aren't we? :-)
I have found that I also need to set accessibility.tabfocus to 7 in Firefox's about:config.
It's in the System Preferences - this blog post shows where the setting is.

Resources