VioletGiraffe / file-commander

Cross-platform Total Commander-like orthodox file manager for Windows, Mac and Linux
Apache License 2.0
379 stars 57 forks source link

Mouse Extra-Button Support #284

Closed Velho closed 2 years ago

Velho commented 2 years ago

As the basic File Explorers provided by Gnome, Kde, Exploer, etc usually provided support for Mouse Button interaction.

Extra buttons usually assigned to backward and forward then reflecting this in the software. Instead of using those extra buttons as replacements for left clicks it would be nice to use them to navigate the file structure or assign some other features to them per user needs.

Velho commented 2 years ago

Now I am just mistakenly moving folders around, gladly it confirms if I want to perform the action.

VioletGiraffe commented 2 years ago

Greetings! What's the model of your mouse, what kinds of extra buttons does it have? My Logitech has 5 extra buttons, but they are fully configurable in the Logitech software. Other software can only detect them as the configured action, it's not possible to detect e. g. "extra mouse button # 3 down".

Velho commented 2 years ago

Logitech Pro Wireless @VioletGiraffe

VioletGiraffe commented 2 years ago

I don't have this mouse so I won't be able to do anything. Maybe you can use the Logitech software to create an application-specific control profile for File Commander and reassign buttons as you like. Or you can build the program from source, use the debugger, and see which key press events correspond to different buttons. Then you can remap these events.

See CFileListView and its mousePressEvent and keyPressEvent.