Fixing OSX's crazy page up/down behaviour

BradRobinsonBradRobinson AUMember ✭✭✭

After using XamStudio on Windows for the last couple of weeks, I've just jumped over to OSX for some iPhone development and noticed that it doesn't seem to honour keybindings defined in ~/Library/KeyBindings/DefaultKeyBindings.dict. This used to work in MonoDevelop.

For example, I have the following defined in my key bindings file, which for most apps fixes OSX's crazy pgup/pgdown/home/end behaviour of scrolling the window but not moving the cursor.

    /* home */
    "\UF729" = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";
    "^\UF729" = "moveToBeginningOfDocument:";
    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:";

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

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

I there anyway I can define this behaviour within XamStudio itself?

(I know I can hold option key to get this behaviour, but this is consistently catching me out)


  • JeffreyStedfastJeffreyStedfast USXamarin Team Xamurai

    In Xamarin Studio's Preferences, there's a Key Binding section that you can use to override any key binding you want.

  • BradRobinsonBradRobinson AUMember ✭✭✭

    Oh, I didn't realize you could remap editor navigation keys... nice.

Sign In or Register to comment.