Fix for Mac OS vertical zoom hotkey

This forum is for discussing Reason. Questions, answers, ideas, and opinions... all apply.
Post Reply
s0ber
Posts: 11
Joined: 01 Sep 2019

09 Feb 2020

Hello there.
I've just created a new script for fixing an annoying issue. There are hotkeys for controlling vertical zoom in Reason: Cmd+Alt+MINUS for zooming out and Cmd+Alt+PLUS for zooming in.
And while zooming out works as expected, for zooming in you have to additionally press Shift, which makes UX very inconvinient. So I was able to fix this with Hammerspoon automation script, which just maps Cmd+Alt+= keypress to Cmd+Alt+PLUS. Again, it only works for Mac OS.

Btw, if you're interested, there was also a script for controlling knobs with the mosewheel some time ago:
viewtopic.php?f=4&t=7513749

Here is the script for the hotkeys:

Code: Select all

-- use CMD-ALT-= for vertical zoom instead of CMD-ALT-+
reasonVerticalZoomTap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function (event)
	if hs.application.frontmostApplication():name() == 'Reason' then
		pressedKey = event:getKeyCode()
		if pressedKey == 24 and event:getFlags()['alt'] and event:getFlags()['cmd'] then
			mods = {'shift', 'cmd', 'alt'}
			newEvents = {
				hs.eventtap.event.newKeyEvent(mods, pressedKey, true),
				hs.eventtap.event.newKeyEvent(mods, pressedKey, false)
			}
			return true, newEvents
		end
	end
end)
reasonVerticalZoomTap:start()
Btw, you can remap any hotkey this way. E.g. I also have a script for making Cmd+Shift+Z work as a redo hotkey.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot], parma and 5 guests