diff --git a/README.md b/README.md index 5a79c56..2e24e76 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ With all that, using these is almost as fast as triggering regular key commands. Keep in mind that right-clicking a track in the MixConsole/lower zone MixConsole does not select it. -- `w` = show/hide editor (VST/sampler) +- `Tab` = show/hide editor (VST/sampler) - `d/Delete/Backspace` = delete selected tracks - `Ctrl+a` = select all tracks - `Ctrl+d` = duplicate selected tracks @@ -196,10 +196,10 @@ Keep in mind that right-clicking a track in the MixConsole/lower zone MixConsole Some of these don't work in the Inspector. -- `Space` = open/focus plugin window (will not close if was already open) *does not work if mouse is under the bypass/arrow buttons* -- `Shift+Space` = close plugin window *does not work if mouse is under the bypass/arrow buttons* +- `Tab` = open/focus plugin window (will not close if was already open) *does not work if mouse is under the bypass/arrow buttons* +- `Shift+Tab` = close plugin window *does not work if mouse is under the bypass/arrow buttons* - `d/Delete/Backspace` = delete insert -- `Tab` = replace insert +- `w` = replace insert - `e` = toggle insert bypass - `Shift+e` = toggle insert activated - `f` = set as last pre-fader slot @@ -212,7 +212,7 @@ Some of these don't work in the Inspector. Some of these don't work in the Inspector. - `d/Delete/Backspace` = clear send -- `Tab` = replace send +- `w` = replace send - `Ctrl+c` = copy send - `Ctrl+v` = paste send - `e` = toggle send activated @@ -222,8 +222,8 @@ Some of these don't work in the Inspector. #### Inserts rack context menu -- `Space` = open/focus all plugin windows -- `Shift+Space` = close all plugin windows +- `Tab` = open/focus all plugin windows +- `Shift+Tab` = close all plugin windows - `e` = toggle inserts bypass - `Ctrl+o` = load FX chain preset - `Ctrl+s` = save as FX chain preset @@ -260,7 +260,7 @@ These pair well with disabling `Preferences -> Editing -> Tools -> Show Toolbox - *(MIDI events/parts)* `Shift+q` = reset quantize - *(MIDI events/parts)* `v` = legato - *(MIDI parts)* `Ctrl+s` = export first selected part as MIDI loop (includes track settings) -- *(key editor)* `w` = open/close note expression editor +- *(key editor)* `Tab` = open/close note expression editor ### File Dialogs diff --git a/night.ahk b/night.ahk index 5ac2cad..3c1fb30 100644 --- a/night.ahk +++ b/night.ahk @@ -1111,22 +1111,6 @@ $Space:: return } - if (Context & ContextNonEmptyInsertSlot) { - CloseCurrentMenu() - SendEvent % "{Space up}{Alt down}{Click}{Alt up}" - if (WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) { - return - } - SendEvent % "{Enter}" - return - } - - if (Context & ContextInsertsRack) { - CloseCurrentMenu() - SendEvent % "{Up}{Right}+!{Enter}" - return - } - if ((Context & ContextEditor) && (Context & ContextSelected)) { CloseCurrentMenu() SendEvent % MacroKeys["Transport - Locate Selection"] @@ -1183,22 +1167,6 @@ $+Space:: return } - if (Context & ContextNonEmptyInsertSlot) { - CloseCurrentMenu() - SendEvent % "{Space up}{Alt down}{Click}{Alt up}" - if (!WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) { - return - } - SendEvent % MacroKeys["File - Close"] - return - } - - if (Context & ContextInsertsRack) { - CloseCurrentMenu() - SendEvent % "{Up}{Right}+{Enter}" - return - } - if ((Context & ContextEditor) && (Context & ContextSelected)) { CloseCurrentMenu() SendEvent % MacroKeys["Transport - Locators to Selection"] @@ -1284,15 +1252,58 @@ $Tab:: Context := FindAppMenuContext(Menu) - if (Context & ContextInsertSlot) { + if (Context & ContextTrack) { CloseCurrentMenu() - SendEvent % "!{Enter}" + SendEvent % MacroKeys["Edit - Edit VST Instrument"] return } - if (Context & ContextSendSlot) { + if (Context & ContextNonEmptyInsertSlot) { CloseCurrentMenu() - SendEvent % "!{Enter}" + SendEvent % "{Tab up}{Alt down}{Click}{Alt up}" + if (WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) { + return + } + SendEvent % "{Enter}" + return + } + + if (Context & ContextInsertsRack) { + CloseCurrentMenu() + SendEvent % "{Up}{Right}+!{Enter}" + return + } + + if ((Context & ContextEditor) && (Context & ContextKeyEditor)) { + CloseCurrentMenu() + SendEvent % MacroKeys["Note Expression - Open/Close Editor"] + return + } + + SendEvent % "{Blind}{Tab}" + } + +$+Tab:: + HandleAppMenuShiftTab() { + if (!HandleMenuHotkey("IsActiveAppMenu", A_ThisFunc)) { + return + } + + Context := FindAppMenuContext(Menu) + + if (Context & ContextNonEmptyInsertSlot) { + CloseCurrentMenu() + SendEvent % "{Tab up}{Alt down}{Click}{Alt up}" + if (!WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) { + return + } + SendEvent % MacroKeys["File - Close"] + return + } + + if (Context & ContextInsertsRack) { + CloseCurrentMenu() + SendEvent % "{Up}{Right}+{Enter}" return } @@ -1918,15 +1929,15 @@ $w:: Context := FindAppMenuContext(Menu) - if (Context & ContextTrack) { + if (Context & ContextInsertSlot) { CloseCurrentMenu() - SendEvent % MacroKeys["Edit - Edit VST Instrument"] + SendEvent % "!{Enter}" return } - if ((Context & ContextEditor) && (Context & ContextKeyEditor)) { + if (Context & ContextSendSlot) { CloseCurrentMenu() - SendEvent % MacroKeys["Note Expression - Open/Close Editor"] + SendEvent % "!{Enter}" return }