godot icon indicating copy to clipboard operation
godot copied to clipboard

Add editor setting to enable or disable zooming with ctrl + Mouse wheel

Open cyanglaz opened this issue 5 months ago • 4 comments

Re-submit https://github.com/godotengine/godot/pull/94480 Fixes https://github.com/godotengine/godot-proposals/issues/7997

I updated the tooltip text to include mac and linux: If [code]true[/code], allows zooming in the script and text-based shader editor with [kbd]Windows: Ctrl + Scroll wheel[/kbd]. [kbd]Mac: CMD + Scroll wheel[/kbd]. [kbd]Linux: Option + Scroll wheel[/kbd].

I think the best solution is to add a the ctrl+scrollwhell as a shortcut setting, and users can configure the shortcut. However, the shortcut settings currently does not support mouse events. I also couldn't figure out where the shortcut settings are added/removed. If someone can point me to a direction to start, I can try to create a new PR to let the shortcut setting to support mouse events, then add ctrl+scrollwheel as a shortcut.

cyanglaz avatar Sep 22 '24 04:09 cyanglaz