rbreaves / kinto

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

shortcut to paste_from_history for sublime text not working on Ubuntu 22.04 #804

Open zhangxueyii opened 1 year ago

zhangxueyii commented 1 year ago

Describe the bug

C-k and C-v works well but this shortcut does not work. K("C-M-v"): [K("C-k"), K("C-v")], # paste_from_history

paste_from_history

Expected behavior the shortcut should pop up a list of copied text in history just like C-k and C-v.

Additional context OS: Ubuntu 22.04 Kinto version: Kinto v1.2-13 build 9a13549

RedBearAK commented 1 year ago

@rbreaves

I'm on Fedora and don't generally use Sublime Text, but I have it installed and tried this combo. It works for me, bringing up the context menu with copied text.

@zhangxueyii

Which type of keyboard do you have (Windows, Apple, IBM, Chromebook) and which physical keys are you trying to use for this shortcut?

On my PC laptop, the physical keys are Alt+Super+V (logically remapped to RCtrl+Alt+V), which appears to be intending to mimic Opt+Cmd+V on an Apple keyboard.

All of the instances of the modifier key M in the current Kinto config file have been replaced by Alt, since referring to the Alt key as Meta was sort of a mistake. The Meta key under most circumstances is the same key as is often referred to by the names Super, Win(dows), or Command. All the same key.

So the way this will look in the latest Kinto config file is:

     K("C-Alt-v"): [K("C-k"), K("C-v")],    # paste_from_history

This doesn't actually change the shortcut keys, it just makes it more clear that the key in the middle is supposed to be Alt.

If you're using the two physical modifier keys to the left of the space bar and this shortcut is not working, I would look for a system shortcut in the keyboard settings control panel for Ubuntu/GNOME that might be interfering.