Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

How do I disable back behaviour for mouse buttons

  • 2 ответа
  • 1 имеет эту проблему
  • 113 просмотров
  • Последний ответ от cakemonitor

more options

Hi,

I use the buttons on the side of my mouse for push-to-talk in Mumble, and I don't want these to also be interpreted by Firefox as a back button.

I've tried opening about:config and setting mousebutton.4th.enabled and mousebutton.5th.enabled to false (as per: https://support.mozilla.org/en-US/questions/1195138). I've also set browser.backspace_action to 2 (as per: https://support.mozilla.org/en-US/questions/1194739). However, neither of these changes have the desired behavior, and Firefox still takes me back a page.

I'm using Firefox Quantum 61.0.1 on Linux Mint 19 Cinnamon.

Thanks.

Hi, I use the buttons on the side of my mouse for push-to-talk in Mumble, and I don't want these to also be interpreted by Firefox as a back button. I've tried opening about:config and setting mousebutton.4th.enabled and mousebutton.5th.enabled to false (as per: https://support.mozilla.org/en-US/questions/1195138). I've also set browser.backspace_action to 2 (as per: https://support.mozilla.org/en-US/questions/1194739). However, neither of these changes have the desired behavior, and Firefox still takes me back a page. I'm using Firefox Quantum 61.0.1 on Linux Mint 19 Cinnamon. Thanks.

Выбранное решение

Thanks. I've fixed it with an xinput command that now runs on startup. For others who might be interested here's what I did:

  1. used xinput-list to dermine that my mouse was device 9
  2. used xinput query-state 9 while holding the relevant buttons to determine that they were buttons 8 & 9
  3. used xinput set-button-map 9 1 2 3 4 5 6 7 6 7 to remap these buttons to the behaviour of buttons 6 & 7 (NB: I had to experiment to find buttons that didn't have a pre-defined behaviour for Firefox, e.g. buttons 4 & 5 acted as up & down arrow inputs!)
  4. tested that side button 8 still worked for push-to-talk in Mumble while not interfering with Firefox
  5. opened Startup Applications (which, in Linux Mint 19 Cinnamon, is found under Menu -> Preferences -> Startup Applications) and added a Custom Command with the full 'xinput set-button-map' command as shown in step 3 above.
  6. rebooted and tested once more; confirmed that it is now working as desired
Прочитайте этот ответ в контексте 👍 0

Все ответы (2)

more options

You should look at your mouse driver software first that is what does the control and the Browser follows up on that.

more options

Выбранное решение

Thanks. I've fixed it with an xinput command that now runs on startup. For others who might be interested here's what I did:

  1. used xinput-list to dermine that my mouse was device 9
  2. used xinput query-state 9 while holding the relevant buttons to determine that they were buttons 8 & 9
  3. used xinput set-button-map 9 1 2 3 4 5 6 7 6 7 to remap these buttons to the behaviour of buttons 6 & 7 (NB: I had to experiment to find buttons that didn't have a pre-defined behaviour for Firefox, e.g. buttons 4 & 5 acted as up & down arrow inputs!)
  4. tested that side button 8 still worked for push-to-talk in Mumble while not interfering with Firefox
  5. opened Startup Applications (which, in Linux Mint 19 Cinnamon, is found under Menu -> Preferences -> Startup Applications) and added a Custom Command with the full 'xinput set-button-map' command as shown in step 3 above.
  6. rebooted and tested once more; confirmed that it is now working as desired

Изменено cakemonitor