linearmouse icon indicating copy to clipboard operation
linearmouse copied to clipboard

Use mouse button as keyboard modifier key

Open Odrin opened this issue 2 years ago • 6 comments

OS

macOS 13.3.1 (a) (Build 22E772610a)

LinearMouse

v0.9.3

Is your feature request related to a problem?

No response

Describe the solution you'd like

Is it possible to use mouse additional button as a keyboard modifier keys like shift or control? I'm able to bind mouse button to keyboard shortcut (ex. shift), but it doesn't work as expected: holding mouse button doesn't work as pressed shift key modifier, but triggers single shift key press on release (or multiple individual button presses if I check "repeat on hold" option).

Describe alternatives you've considered

No response

Additional context

No response

Odrin avatar Aug 22 '23 08:08 Odrin

Thanks for your feedback!

Could you provide the steps to reproduce?

I tried mapping button 3 to shift+command (without checking "repeat on hold" option), and then holding down button 3 while pressing key 3, and a screenshot was successfully captured.

lujjjh avatar Aug 24 '23 11:08 lujjjh

@lujjjh No, you got me wrong. I want to use mouse button as shift (or any other modifier), not as shift + something. I mean holding mouse button and getting UPPER case while typing.

I checked your example and it seems not working as you described with my logi mx anywhere 3. I guess it could be hardware issue.

Odrin avatar Aug 24 '23 14:08 Odrin

I mapped button 3 to shift and it worked as expected. Do you have Logi Options+ or other mouse utilities installed?

It would be helpful to attach the logs which you can export from General Settings.

lujjjh avatar Aug 24 '23 14:08 lujjjh

Sorry for the long response. I don't have any other mouse utilities installed. Here is my log. I mapped button 3 to shift and wrote "test" three times while holding down the mouse button 3.

Odrin avatar Sep 09 '23 13:09 Odrin

Thank you for providing the logs!

Based on the logs, it appears that button 3 (identified as usage ID 04) was pressed and released within a second. This supports your hypothesis that this might be a hardware issue.

2023-09-09 13:34:47 +0000	info	Device	Received input value from: USB Receiver (VID=0x046D, PID=0xC52B): timestamp: 10081340369354 length: 1 data: [1] integerValue: 1 element=(usagePage: 09 usage: 04)
2023-09-09 13:34:47 +0000	info	ButtonActions	Down keys: [⇧]
2023-09-09 13:34:47 +0000	info	Device	Received input value from: USB Receiver (VID=0x046D, PID=0xC52B): timestamp: 10081340752417 length: 1 data: [0] integerValue: 0 element=(usagePage: 09 usage: 04)
2023-09-09 13:34:47 +0000	info	ButtonActions	Up keys: [⇧]

I would leave this issue open and see if others can reproduce it.

lujjjh avatar Sep 09 '23 14:09 lujjjh

Hi everyone! I am having a similar issue. I have a Logitech G602, which has 11 programmable buttons.

I have assigned one of the side buttons to the "shift" keyboard shortcut, to use it with a left click. The idea is that I can hold that button, click a URL, and it will open into a new window.

For some reason, this doesn't seem to work. The button functions as a shift correctly when pressed on the mouse (letters are typed in uppercase), but when held down and used with a left click, links do not open into a new window.

Any ideas?

RumplesWrinkles avatar Dec 26 '23 18:12 RumplesWrinkles