zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.13k stars 1.9k forks source link

Fail to define shortcut like Meta+[ or Meta+Shift+Left #1512

Open snakewa opened 3 years ago

snakewa commented 3 years ago

backInNoteHistory default shortcut is Meta+Left, but usually this shortcut is for move the cursor to the beginning in the editor mode. So I try to Bind it to Meta+[. It seems work like "Meta" only, so everytime I press Meta, then backInNoteHistory is executed.

Then I try Meta+Shift+Left, it does not work at all.

[Delete] also not works by default to delete a note

And some default behaviour is missing for Mac user like Meta+, for options . This could be defined by myself anyway

OS: MacOS Version 0.45.7 (0.45.7)

zDEFz commented 3 years ago

Hello. Found out by accident that the backInNoteHistory thing is also browser backwards behavior. So if you have a mouse with a backward and forward button and use the program "sensible side buttons", you can go back/forward in history with the mouse, on default behaviour.

I propose to simply implement catching keys held, thus making shortcuts by holding them in the field.

Further, I cannot comprehend delete not working to delete notes by default, maybe you lacking to hold FN ? I use a keyboard without FN (Das Ultimate), and dont have that problem.

I'm on catalina, since big sur introduced a LOT of problems.

zadam commented 3 years ago

Hi, CMD-Left and CMD-Right come from discussion in #376 

Meta+[ and Meta+Shift+Left don't work for me either, but I don't know why. It's not possible to register any shortcut, different browsers limit the assignable shortcuts in different ways.

justhzd commented 6 months ago

不知道是哪里的问题,我发现把Shift放到最前面就起作用了。比如Shift+Meta+Left或者Shift+Meta+[。包括其他需要Meta+Shift的快捷键,需要改成Shift+Meta才能起作用。

I don't know where the problem is, but I found that putting Shift at the front works. For example, Shift+Meta+Left or Shift+Meta+[. Including other shortcut keys that require Meta+Shift, they need to be changed to Shift+Meta to work.