I do believe that it should still work under V9, however I personally have added my shortcuts to MenuSetup.tr rather than KeyEventTranslations.tr and they read:
Menu["&Typesetting",
{
...
Delimiter,
(*My typesetting shortcuts*)
MenuItem["Matching ()", FrontEndExecute[{FrontEnd`NotebookApply[FrontEnd`InputNotebook[], "(\[SelectionPlaceholder])"]}],
MenuKey["8", Modifiers->{"Control","Shift"}]],
MenuItem["Matching []",FrontEndExecute[{FrontEnd`NotebookApply[FrontEnd`InputNotebook[], "[\[SelectionPlaceholder]]"]}],
MenuKey["9", Modifiers->{"Control","Shift"}]],
MenuItem["Matching {}", FrontEndExecute[{FrontEnd`NotebookApply[FrontEnd`InputNotebook[], "{\[SelectionPlaceholder]}"]}],
MenuKey["8", Modifiers->{"Control","Command","Shift"}]],
MenuItem["Matching [[ ]]",FrontEndExecute[{FrontEnd`NotebookApply[FrontEnd`InputNotebook[],"\[LeftDoubleBracket]\[SelectionPlaceholder]\[RightDoubleBracket]"]}],
MenuKey["9", Modifiers->{"Control","Command","Shift"}]],
MenuItem["My costum format function", KernelExecute[ToExpression[myCostumTypessingFunction[]]],
MenuKey[".", Modifiers -> {"Control", "Command"}], MenuEvaluator -> Automatic],
This way they are also listed under the menu Insert>TypeSetting> name, along with a helpful reminder of what the shortcut key combination is. The reason for the \[SelectinPlaceholder]
is so that you can select some code and use the shortcut to wrap it in parenthesis.
[[
$\endgroup$KeyEventTranslations.tr
. Do not use Mathematica to edit that file because it may break it. If you did edit it with Mathematica, try to get the original file from the installer and restore it. $\endgroup$