3

In most applications, Control+Mouse-wheel allows one to zoom in or out (e.g. Firefox, LibreOffice, Evince, etc.). After upgrading from Ubuntu 20.04 to 22.04, Gnome seems to catch the event and switches to left/right workspace on Control+Mouse-wheel, and the application doesn't receive it. As a consequence, zooming with Control+Mouse-wheel doesn't work.

I checked the keyboard shortcuts in the "Keyboard" section of gnome-control-center, but as the name suggests it contains only keyboard shortcuts, not mouse-wheel related ones.

This is not the default behavior, since I'm not getting it on another account on the same machine.

In any case, how can I get back the old behavior, i.e. let the Control+Mouse-wheel reach the applications (and allow me to zoom in/out)? Or any idea where to search?

2 Answers2

3

The configuration comes from the dconf configuration database, more precisely the /org/gnome/desktop/wm/preferences/mouse-button-modifier key. In my case, it was set to a string containing <Control> (in addition to other modifiers), setting back to the default value restored a correct behavior.

Resetting to the default can be done graphically using dconf-editor (toggle the Use default value switch to on):

enter image description here

If you prefer the command-line, then gsettings is the answer:

gsettings reset org.gnome.desktop.wm.preferences mouse-button-modifier
-1

To activate zoom in and zoom out in Ubuntu 22 by ctrl + mouse scrolling:

  1. In terminal run the following command to install dconfig

    sudo apt-get install dconf-editor
    
  2. then open d config using the following command:

    dconf-editor
    
  3. In d config go to /org/gnome/desktop/wm/preferences/mouse-button-modifier, switch off Use Default Value then type <zoom> in custom value, then click Apply.

Zanna
  • 72,312