Skip to content

Intercepting Mission Control button (keyCode 160) on Sequoia 15.6 #3810

@sergem155

Description

@sergem155

I used to intercept mission control button using this code and it does not seem to work anymore after 15.6 upgrade:

local keyboardHandler = function(event)
	local keyCode = event:getKeyCode()
	if keyCode == 160 then
		moveToNextScreen()
		return true
	end
end

keyboardEventListener = hs.eventtap.new({
	hs.eventtap.event.types.keyDown
}, keyboardHandler)
keyboardEventListener:start()

I checked and this shortcut is still not enabled in Settings (I disabled it some time ago), so it should not overlap. What can I try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions