procedure TCnWizShortCutMgr.InstallKeyBinding; ... if not IsEmpty then begin QuerySvcs(BorlandIDEServices, IOTAKeyboardServices, KeySvcs); SaveMainMenuShortCuts; try try FKeyBindingIndex := KeySvcs.AddKeyboardBinding(TCnKeyBinding.Create(Self)); KeySvcs.PushKeyboard(SCnPackKeyboard); // This method must be called only once per session if FPushed then // Add boolean field FPushed begin KeySvcs.PushKeyboard(SCnPackKeyboard); FPushed := True; end; except ; end; finally RestoreMainMenuShortCuts; end; end; end; |
Welcome to CnPack Forum (http://bbs.cnpack.org/) | Powered by Discuz! 5.0.0 |