Featured image of post Keychron鍵盤映射或禁用截圖快捷鍵

Keychron鍵盤映射或禁用截圖快捷鍵

前段時間購入一塊Keychron K3機械鍵盤,總體體驗不錯,但截圖快捷鍵很容易在點擊delete鍵的時候誤觸,於是想要重新映射這個按鍵,卻發現在Karabiner Elements裡面找不到這個鍵……

使用Keyboard Maestro映射或禁用截圖快捷鍵

遇到問題之後我在網路上爬資料,看到也有不少網友吐槽Keychron的截圖快捷鍵很容易誤觸,有人給出的方法是直接在系統內禁用command+shift+4的截圖快捷鍵,但這樣……截圖真的會變得超麻煩……

還有暴力點的網友直接拆鍵盤重新飛線的,但這真的有點麻煩,而且會丟保修(

使用Keyboard Maestro禁用截圖快捷鍵的方法是Reddit網友@earbud這個帖子裡提出的,所以我這篇部落格也就是做一個轉載+介紹,順便在ta的基礎上提供重定向這個截圖鍵的方法。

I used Karabiner’s Event Viewer to find out that pressing the screenshot key actually simulates the key presses and release of cmd+shift+4. (you don’t have to do this. just letting you know how I found out what the screenshot button was actually doing).

Since I wanted to keep the manual screenshot key bind, I needed to differentiate between the key presses of the screenshot key and me pressing the keys manually. I did this in Keyboard Maestro (KM) by checking if the cmd and shift keys are held down for a moment longer than the 4 key (idk if everyone does this but I release the 4 key first and hold the cmd and shit keys a little longer when I am pressing the keys to start a screenshot) and then pressing esc if they were not (because the screenshot key releases all keys at close enough time together than KM cannot distinguish a time delay).

這是一個很簡單粗暴的方法~~,不過至少比拆鍵盤飛線靈活~~,但確實奏效(

各位只要安裝一個Keyboard Maestro ~~(價格是US$36)~~就可以了,這是一個自訂快捷鍵的小軟體,當然也可以用其他類似功能的軟體替代。我直接在這裡給出寫好的配置文件,各位直接保存為拓展名.kmmacros導入軟體就可以用了。

或者也可以直接從這裡下載配置:下載連結

突然發現直接導入配置應該是不能用的,鍵盤的UID不同,所以各位就按圖片的規則手動配置吧(

配置規則

如果需要映射,就點擊最右側一欄最下方的New Action按鈕,在左側找到Type a Keystroke,拖拽到模擬Escape動作下面,然後輸入你想要的按鈕就行啦~我把它重定向成語音識別輸入了,語音識別輸入按鈕就算誤觸也不會影響整體輸入體驗,因為直接繼續打字就會自動關閉了(

映射截圖鍵

使用Karabiner Elements將功能鍵映射成新版鍵位

Keychron/京造的鍵盤的Fn功能鍵鍵位是老款Mac鍵盤的,和新款Mac配總感覺不爽,這個問題可以用Karabiner Elements解決。

Karabiner Elements安裝方法:

1
brew install --cask karabiner-elements

安裝後在Function keys裡面把Target device選成Keychron鍵盤,然後按照自己喜好調整就OK啦~

Function keys

我因為需要在多種輸入語言中切換,而K2提供的Fn按鍵在鍵盤右側,點按不方便,所以就把Fn也映射到鍵盤的左下角原Control鍵的位置了。不知道為什麼,使用macOS內建的Modifier Keys映射成Fn後每次切換語言只能切換一次,不能連續切換語言,而Karabiner Elements就一切正常了。

Simple modifications

我的映射方案供各位參考。