# 修改 macOS home end keybinding 預設行為 ## 背景 - Arc 瀏覽器即使在網址或文字區塊使用 home end,沒有像 windows 一樣跳到行首行尾 - Messenger 應用程式裡面發送訊息的文字框也不起作用 ## 解決方式 - 參考下面這個 Reddit 文章 [Behavior of the Home and End keys : r/MacOS](https://www.reddit.com/r/MacOS/comments/pz9vnu/behavior_of_the_home_and_end_keys/) ## 步驟 - 可以去 library 裡面改 keybinding.dict - 打開 finder 的前往 tab,按住 option 會顯示一個叫做資源庫的選項點進去  - 在資源庫中新增一個 `Keybindings` 資料夾 - 在 `Keybindings` 中建立一個 `DefaultKeyBinding.dict`  - 在裡面輸入以下內容(內容應該滿容易懂,前面就是按鍵編碼,後面是行為) ``` json { "\UF729" = "moveToBeginningOfLine:"; "\UF72B" = "moveToEndOfLine:"; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up