Monk on MacOS - USB keyboard problems
Monkey Forums/Monkey Programming/Monk on MacOS - USB keyboard problems
| ||
I just bought a new fullsize USB keyboard for my Mac (proper Apple one) because it has a 'normal' keyboard layout. Works perfectly well in OpenOffice but in Monk, the Home, End, Page Up and Page Down keys do not work. I guess the Monk code just doesn't check for the scancodes for those keys? Hope this can be fixed as this is what I bought the keyboard for! |
| ||
it seems Home and End are mapped to Command+Up/Down cursor Alt+Up/Down cursor jumps to the begining/end of the line Looking at the monk.bmx source, FilterKey function, it looks like all keys other than Shift+Tab are sent through unmodified? I've only had a quick glance at the code so I could be wrong... |
| ||
Hi, Is this on Lion? Can you try in 'notepad' or whatever it's called? Lion seems to have done something to shortcuts - I can no longer go to start of line at all in any apps, not just Monk. Ctrl-A used to do the trick... Note: On MacOS, home/end have always worked (annoyingly) differently from windows anyway. |
| ||
Good spot! Yes it is Lion and you're right that Home/End/PgUp/PgDn do not work in the standard TextEdit app, either. Looks like an Apple bug then? Also, this reminds me, if you want to adjust key bindings system wide (per user to be safe) you can use: http://www.cocoabits.com/KeyBindingsEditor/ To rebind home/end to move to the beginning/end of line, and page up/down to actually move the caret, do the following: (save to ~/Library/KeyBindings/DefaultKeyBinding.dict for per user change) ![]() Settings taken from: http://blog.macromates.com/2005/key-bindings-for-switchers/ |
| ||
Thanks Matt completely forgot about this thread as I've been back on me PC for the past week. |
| ||
Just got around to trying this. Some of the action names are different, and the path you said to save to, doesn't seem to exist in Lion. Still working on it.... |
| ||
Found a better solution. Download KeyRemap4MacBook (its not just for Macbooks). http://pqrs.org/macosx/keyremap4macbook/index.html#t0p0 1. Install it, and reboot. 2. Go into system prefs>>KeyRemap4MacBook 3. Select the 'Change Key' tab. 4. Open up "For PC Users" (its near the bottom) 5. Check the first and third options ("Use PC style home/end", "Use PC style page up/down"). Done! My new keyboard is no longer a £40 door stop! |
| ||
Does this work equally in all apps? (my change using KeyBindings stopped the keys working as intended in some apps, notably Safari) |