logseq-plugin-tabs
logseq-plugin-tabs copied to clipboard
fix: close tabs with CTRL+W
Per discussion in https://github.com/pengx17/logseq-plugin-tabs/commit/24d9445b51d707eea635bb9f3cb3373d5794f850
Because the shortcut registering in Logseq API does not prevent default browser behaviors and the old way of registering shortcuts (in the deleted codes above) is not that reliable, I changed the shortcut to "shift+ctrl+w" shortly after.
I also think the current shortcut (shift+ctrl+w) is not that intuitive. Here are two things I am considering:
contribute upstream Logseq to add an option to prevent from event popping up if it is registered in the meantime, find a solution to always prevent ctrl+w behavior through the plugin ...
For macOS, we could manually change the keyboard of Close Window
@usoonees yeah, this can be configured in the OS, but I think the fundamental issue is that plugin registered keybindings will still pop up to the outer and triggers some other default behaviors. I guess the solution is still up to the upstream in Logseq core.