How can I assign a mouse button (tablet button 1) to apply a style? [Solved]

The manual says it is possible to assign a shortcut to apply a style, but I can’t find a way to do this. How to go about it?

In the upper right of the picture display area, there is a gear icon. This is to access the preferences for darktable, in the dialog that opens look for “shortcuts” you can change the key assignments for functions there.

Open the preferences screen and go to the shortcuts tab. In the top panel select global>styles. Double-click on the style you wish to assign a shortcut to. Enter your shortcut.

Edit: if you wish to find actions to assign shortcuts to, you can also use “search actions list” at the bottom of preferences>shortcuts.

Thank you. I was looking under darkroom, not global. I was thinking that because I apply a style whilst editing a picture in the darkrom. But now I realise styles can be applied to multiple pictures selected in the lighttable (which I have never done).