如何禁用 Command-Up/Down 箭头快捷键?
由于多年来对其他操作系统的适应,我已经厌倦了跳转到文档的开头或结尾!
答案1
您可以将以下内容保存为~/Library/KeyBindings/DefaultKeyBinding.dict
:
{
"@\UF700" = noop:; // command-up
"@\UF701" = noop:; // command-down
"$@\UF700" = noop:; // shift-command-up
"$@\UF701" = noop:; // shift-command-down
// "\UF729" = moveToBeginningOfLine:; // home
// "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
// "\UF72B" = moveToEndOfLine:; // end
// "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
// "\UF72C" = pageUp:; // OS X default is scrollPageUp: which doesn't move the caret
// "\UF72D" = pageDown:;
// "$\UF72C" = pageUpAndModifySelection:;
// "$\UF72D" = pageDownAndModifySelection:;
}
更多信息: