Fons Rademakers wrote:
For historical reasons I would like to bind f3 to "close window" command.
You want to bind the "performClose:" selector to F3. The way to do this is to put the following file as ~/Library/KeyBindings/DefaultKeyBinding.dict
{ "\UF706" = "performClose:"; }
Now every application with Cocoa text widgets can use F3 for close.
To learn more, see my article about keybinding:
http://hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html
-Jacob