- 【Karabiner】キーリマップ・カスタマイズ総合 for Mac【英かな】 [無断転載禁止]©2ch.net
217 :名称未設定[]:2017/03/22(水) 18:34:47.56 ID:19xnCG3B0 - これで動いた アドバイスありがとう
hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(e) local r = false if e:getFlags()['alt'] and e:getFlags()['shift'] then if e:getKeyCode() == 34 then hs.eventtap.event.newKeyEvent({"shift"}, "up", true):post(); r = true end if e:getKeyCode() == 38 then hs.eventtap.event.newKeyEvent({"shift"}, "left", true):post(); r = true end if e:getKeyCode() == 40 then hs.eventtap.event.newKeyEvent({"shift"}, "down", true):post(); r = true end if e:getKeyCode() == 37 then hs.eventtap.event.newKeyEvent({"shift"}, "right", true):post(); r = true end return r end if e:getFlags()['alt'] then if e:getKeyCode() == 34 then hs.eventtap.event.newKeyEvent({}, "up", true):post(); r = true end if e:getKeyCode() == 38 then hs.eventtap.event.newKeyEvent({}, "left", true):post(); r = true end if e:getKeyCode() == 40 then hs.eventtap.event.newKeyEvent({}, "down", true):post(); r = true end if e:getKeyCode() == 37 then hs.eventtap.event.newKeyEvent({}, "right", true):post(); r = true end if e:getKeyCode() == 51 then hs.eventtap.event.newKeyEvent({}, "forwarddelete", true):post(); r = true end return r end end):start()
|