gnome-shell-grid icon indicating copy to clipboard operation
gnome-shell-grid copied to clipboard

Numlock prevents key registration

Open colinafoley opened this issue 13 years ago • 4 comments

With numlock disabled, I can move windows around as expected. When I turn numlock on, nothing happens.

If the terminal running gnome-shell-grid.py has focus, the numbers from the keypad get entered in the terminal. If another window has focus, the terminal doesn't output anything.

colinafoley avatar Apr 20 '12 01:04 colinafoley

The NumLock get does basically what it says; it locks the keys so that they're used as numbers rather than keys. I can see a couple possible changes:

  • put a message in the console, either at startup or every time, when NumLock is on
  • add a commandline option to ignore NumLock, and bind to the keys anyways. This might interfere with the regular numbers, though.

The first change seems unambiguously good, so I'll make that. I'll think about the other one.

paulswartz avatar Apr 20 '12 13:04 paulswartz

Thanks for implementing the warning message.

I think the command line option to ignore NumLock would be great. I'm on my laptop right now and my "keypad" is integrated into the regular keyboard. The only way I can activate the keypad is by turning on NumLock. I wouldn't worry about locking the keys as numbers absolutely because it should only register when C-M-* is pressed, where * is a keypad number. Without the C-M, the keys will still produce numbers.

Now, I'm pretty much making this up out of thin air. I'm not sure what difficulties, if any, are present in detecting a number input as a keypad hit.

colinafoley avatar Apr 22 '12 00:04 colinafoley

If you don't have a separate numpad, can you use the C-M-S keys instead? I implemented them so I could use gnome-shell-grid from my laptop keyboard.

paulswartz avatar Apr 22 '12 13:04 paulswartz

I have C-M-S [h, j, k, l] bound for moving windows between workspaces. Seeing as this is just a very particular use case, it's probably not worthy to support.

colinafoley avatar Apr 22 '12 20:04 colinafoley