hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.69k stars 441 forks source link

numeric keypad unusable #2308

Open doom189 opened 1 year ago

doom189 commented 1 year ago

I am using Win10 22H2 19045.2728. What I am trying to do is bind the "Show the tray menu" function to + + ("") (with Num Lock always on) but it does not work.Ctrl + Numeric Keypad Num 1

Steps to reproduce: Make sure Num Lock is on. Go to "CopyQ Configuration" -> "Shortcuts" -> Show the tray menu" Click to add a shortcut Press Ctrl+Num 1, note that CopyQ registers "Ctrl+Num 1". Click "Apply". Swtich to any other application, (say, gedit,) Press Ctrl+Num 1. Expected behavior: The CopyQ tray menu should appear. Actual behavior: Nothing happens. More information: If I press Ctrl+1 (not on the numeric keypad) the CopyQ tray menu appears.

hluk commented 1 year ago

I don't think I can fix this. It is some bug in Qt. The problem is with how QKeySequenceEdit UI widget retrieves the shortcut.

But it should be possible to fix the captured shortcuts manually in the configuration file:

  1. Exit Copyq.
  2. Open configuration file copyq-commands.ini in a text editor (see FAQ: Where to find saved items and configuration?).
  3. Search for the bad shortcut (e.g. ctrl+1).
  4. Edit it by prefixing it with num+ (e.g. num+ctrl+1).
  5. Save and start CopyQ again.
doom189 commented 1 year ago

@hluk Correction: num1 refers to the number 1 on the numeric keypad.

doom189 commented 1 year ago

Not the NumLock key.

doom189 commented 1 year ago

I want the script use numeric keypad num1~num9 """ copyq: var n = str(data(mimeShortcut)).slice(-1) select(n) paste() """