https://www.dendron.so/ logo
x

xg

02/22/2022, 7:38 PM
I'm using Dendron on a Mac (Monterey) and for some reason Cmd+h (hide app) does not work if Dendron is the current VSCode window. It works from other VSCode windows. Is there a fix? I tried searching discord for "mac" but none of those messages mentioned this.
k

kevins8

02/22/2022, 7:47 PM
can you run
>Developer: Toggle Keyboard Shortcuts Troubleshooting
, toggle ctrl+h in a dendron window, and paste the output?
x

xg

02/22/2022, 7:55 PM
Hmm.. that's weird I got some error in the console when I ran the command so I restarted VSCode, and now Cmd+h works... I'll post in this thread again when it happens again! (it has happened before)
I ran in to this bug again. Seems to happen when the note graph view is the active tab (i.e. I have clicked on the note graph tab UI element) but I have not clicked in the actual content of the tab. I also ran into a crash when trying to view the full graph of a note. Filed a bug report on github.
Here is the keyboard log:
Copy code
[2022-03-03 18:53:06.005] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
[2022-03-03 18:53:06.037] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
[2022-03-03 18:53:06.037] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
[2022-03-03 18:53:06.296] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: KeyH, keyCode: 72, key: h
[2022-03-03 18:53:06.296] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: KeyH, keyCode: 38 ('H')
[2022-03-03 18:53:06.296] [renderer1] [info] [KeybindingService]: | Resolving meta+[KeyH]
[2022-03-03 18:53:06.296] [renderer1] [info] [KeybindingService]: \ No keybinding entries.
[2022-03-03 18:53:06.467] [renderer1] [info] [KeybindingService]: + Storing single modifier for possible chord meta.
[2022-03-03 18:53:06.772] [renderer1] [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.
To be clear, Cmd+H is supposed to hide VSCode.
k

kevins8

03/03/2022, 5:56 PM
thanks for the log. will take a look at this later today!
to circle back on this - it looks like this is because the graph view is a web view and this is currently preventing the keyboard shortcut from firing. it seems to be a common property of vscode webviews (you'll also notice this if you in dendron preview or using gitlens webview)