最近把公司使用上的 desktop轉做Mac了,在使用Home, End鍵時總時不習慣,
之前在家已經很努力的改用Cmd + < 或 Cmd+> ,但還是沒那麼順手,所以剛才google了一下有沒有解決方案,
最終找到了,這個方法合用10.5, 10.6 之前有找到一個,對10.6無效

首先要先確認有建立好
~/Library/KeyBindings ,如沒有就加吧
再在KeyBindings新增一個檔案 DefaultKeyBinding.dict
並加上以下內容
{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";

/* Cmd-Left */
"@\UF702" = "moveToBeginningOfLine:";
"[email protected]\UF702" = "moveToBeginningOfLineAndModifySelection:";

/* Cmd-Right */
"@\UF703" = "moveToEndOfLine:";
"[email protected]\UF703" = "moveToEndOfLineAndModifySelection:";

/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";

/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}

重新啟動你在使用的應用程式,那就可以有回 windows style的Home及End鍵了

參考網站: http://bigdiver.wordpress.com/2009/09/11/configure-homeend-key-bidings-on-mac-os-x/

Tags: , , , , ,

One Response

  1. 哈哈~ 終於有新野睇~~~雖然好深奧…XD

Comments are closed.