rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.24k stars 212 forks source link

Not able to set shortcuts in Jetbrains using Alt #771

Open krtkvrm opened 1 year ago

krtkvrm commented 1 year ago

Describe the bug I am not able to set shortcuts in Jetbrains

Expected behavior i want to assign Ctrl + N (Alt + N on US Keyboard) on this command, but I am getting Alt + Insert image

Install Type: Bare Metal Distro: Ubuntu 20.04 LTS DE: Gnome

RedBearAK commented 1 year ago

@krtkvrm

This is happening because of this line in kinto.py:

K("C-n"): K("Alt-Insert"), # Generate code...

This remaps Ctrl-N to Alt-Insert in Jetbrains. Line 218 in the current default config file. https://github.com/rbreaves/kinto/blob/e106710afb32a395b53a081d95b5866db717aea8/linux/kinto.py#L218

I’m not familiar with Jetbrains myself, so I’m not sure why that’s there, but everything in the Kinto config is meant to mimic the shortcuts from the equivalent macOS app.

If you really want to reassign that shortcut combo you can just comment out that line and restart Kinto. That specific combo remap would no longer be active, and you could assign Ctrl-N without interference. But generally it’s a better idea to consider why you are using a pre-assigned remapped shortcut for something else.