Skip to content

Commit

Permalink
Use 'fn' instead of 'option' to mute/unmute microphone
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed Mar 26, 2017
1 parent c2e126b commit b05b17e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hammerspoon/microphone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ optionHandler = function(event)
local device = hs.audiodevice.defaultInputDevice()
local newMods = event:getFlags()

-- alt keyDown
if newMods['alt'] == true then
-- fn keyDown
if newMods['fn'] == true then
toggle(device)
if recentlyClicked == true then
displayStatus()
Expand All @@ -44,8 +44,8 @@ optionHandler = function(event)
recentlyClicked = true
controlKeyTimer:start()

-- alt keyUp
elseif lastMods['alt'] == true and newMods['alt'] == nil then
-- fn keyUp
elseif lastMods['fn'] == true and newMods['fn'] == nil then
if secondClick then
secondClick = false
else
Expand Down

0 comments on commit b05b17e

Please sign in to comment.