klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Feature request: <Leader> type shortcut like Vim

Open xaljer opened this issue 4 years ago • 1 comments

User can specify a key as <Leader>, such as space or \', and then they can add shortcut in the <Leader> + [a-z]` form.

xaljer avatar Aug 22 '21 03:08 xaljer

I am afraid this is not supported in Qt shortcut handling. It can be done using raw key events, but this would work only with latin keyboard layout because there is no clean and portable way to map the keys. Qt somehow does it internally but doesn't expose this functionality. And switching layout for shortcuts to work is very frustrating.

If someone can point me to the library that does the trick, is portable and works with non-latin layouts, I'll be happy to integrate it.

variar avatar Aug 22 '21 10:08 variar