Default keyboard shortcuts not working in Schematic Editor

Discussion in 'Cadence' started by spectrallypure, Nov 11, 2006.

  1. Hi all,

    I just installed IC (5.10.41_USR2.19.52) in Fedora Core 5, and
    everything seems to work fine except that -weirdly enough- I can't use
    any of the default keyboard shorcuts when using the Schematic Editor
    ("w" for wire, "f" for fit, and so on). What is even weirdier, the menu
    entries for the commands also don't show the shortcuts as letters to
    the right of the commands, as would be expected in a normal
    installation. I have not defined any bindkeys whatsoever; it's just a
    fresh IC installation without any sort of user customization applied
    yet.... Could any body please tell me what could be the problem?

    Thanks in advance for any help!

    Regards,
     
    spectrallypure, Nov 11, 2006
    #1
  2. spectrallypure

    linkin Guest

    I'm not an expert, but this setup works for me:

    1. In the directory you start cadence, make sure your .cdsinit file
    has the following:
    let( (bindKeyFileList file path saveSkillPath)
    bindKeyFileList = '(
    "leBindKeys.il"
    "schBindKeys.il"
    )

    2. In the directory you start cadence, you must have bindkey files. I
    use leBindKeys.il for layout editor bindkeys, and schBindKeys.il for
    schematic editor bindkeys, and they are attached below:

    ;*******************************************************************
    ;schBindKeys.il:
    ;*******************************************************************
    ;
    ; This file contains example bind keys for use in:
    ; Schematic editor (prefix "Schematics")
    ; Symbol editor (prefix "Symbol")
    ; Read HDL (prefix "Read HDL") only if capability enabled
    ;
    ; The following alias will be used in this file to make the bindkey
    ; definitions more readable.
    ;
    alias bk hiSetBindKey

    (when (getd 'schIsViewCapEnabled) && (schIsViewCapEnabled nil)

    ; General bindkeys (prefix "Schematics"). These bindkeys are bound
    to
    ; graphics editor ("ge") and human interface ("hi") functionality.
    ;
    bk("Schematics" "<Key>F6" "hiRedraw()")
    bk("Schematics" "<Key>Down" "geScroll(nil \"s\" nil)")
    bk("Schematics" "<Key>Up" "geScroll(nil \"n\" nil)")
    bk("Schematics" "<Key>Right" "geScroll(nil \"e\" nil)")
    bk("Schematics" "<Key>Left" "geScroll(nil \"w\" nil)")
    bk("Schematics" "<Key>a" "geSingleSelectPoint()")
    bk("Schematics" "Ctrl<Key>a" "geSelectAllFig()")
    bk("Schematics" "Shift<Key>a" "geSingleSelectBox()")
    ;bk("Schematics" "<Key>d" "geSubSelectPoint()")
    bk("Schematics" "Ctrl<Key>d" "geDeselectAllFig()")
    bk("Schematics" "Shift<Key>d" "geSubSelectBox()")
    bk("Schematics" "<Key>f"
    "schZoomFit(1.0 0.9)")
    bk("Schematics" "Ctrl<Key>f" "schSetSelectOptions()")
    bk("Schematics" "Shift<Key>f"
    "hiZoomAbsoluteScale(getCurrentWindow() 0.9)")
    bk("Schematics" "Alt<Key>o" "deOpen()")
    bk("Schematics" "<Key>o" "schHiDisplayOptions()")
    bk("Schematics" "Shift<Key>o" "schHiEditorOptions()")
    bk("Schematics" "Ctrl<Key>o" "schHiGridOptions()")
    bk("Schematics" "<Key>q" "schHiObjectProperty()")
    bk("Schematics" "<Key>q EF" "schHiObjectProperty()")
    bk("Schematics" "Shift<Key>q" "schHiCellViewProperty()")
    bk("Schematics" "Shift<Key>q EF" "schHiCellViewProperty()")
    bk("Schematics" "<Key>u" "hiUndo()")
    bk("Schematics" "Shift<Key>u" "hiRedo()")
    bk("Schematics" "<Key>v" "hiVectorPan()")
    bk("Schematics" "Ctrl<Key>v" "hiFocusToCIW(hiGetCurrentWindow())")
    bk("Schematics" "<Key>z" "hiZoomIn()")
    bk("Schematics" "Ctrl<Key>z" "hiZoomOut()")
    ;bk("Schematics"
    "Shift<Key>z" "hiPrevWinView(hiGetCurrentWindow())")
    ;by HWI
    bk("Schematics" "Shift<Key>z"
    "hiZoomRelativeScale(getCurrentWindow() 0.707)")
    bk("Schematics" "Shift<Key>z EF"
    "hiZoomRelativeScale(getCurrentWindow() 0.707)")
    bk("Schematics" "<Key>[" "hiZoomRelativeScale(getCurrentWindow()
    0.707)")
    bk("Schematics" "<Key>]" "hiZoomRelativeScale(getCurrentWindow()
    1.414)")
    bk("Schematics" "Shift<Key>s" "schHiSaveCellView()")
    bk("Schematics" "Ctrl<Key>s" "geSaveAs()")
    bk("Schematics" "<Key>1" "geAddNetProbe()")
    bk("Schematics" "<Key>2" "geDeleteNetProbe()")
    bk("Schematics" "Shift<Key>g" "schHiFindMarker()")
    bk("Schematics" "Ctrl<Key>g" "geHiDeleteMarker()")
    ;bk("Schematics" "<Key>g" "schHiFindMarker()")
    bk("Schematics" "<Key>g" "geHiDeleteAllMarker()")

    ; Specific bindkeys (prefix "Schematics"). These bindkeys are
    bound to
    ; schematic editor ("Schematics") functionality.
    ;
    bk("Schematics" "None<Btn1Down>" "schSingleSelectPt()")
    bk("Schematics" "Shift<Btn1Down>" "schAddSelectPt()")
    bk("Schematics" "<DrawThru1>" "schDirectEdit(1)")
    bk("Schematics" "Shift<DrawThru1>" "schDirectEdit(2)")
    bk("Schematics" "Ctrl<DrawThru1>" "schDirectEdit(3)")
    bk("Schematics" "None<Btn1Down>(2)" "schExtendSelectPt()")
    bk("Schematics" "None<Btn1Down>(2) EF"
    "schMouseApplyOrFinish()")
    bk("Schematics" "None<Btn2Down>" "schHiMousePopUp()")
    bk("Schematics" "None<Btn2Down> EF" "schHiMousePopUp()")
    bk("Schematics" "None<Btn3Down> EF" "schCmdOption()")
    bk("Schematics" "Shift<Btn3Down> EF"
    "schShiftCmdOption()")
    bk("Schematics" "<Key>Delete" "schHiDelete()")
    ; Uncomment following line for HP 700 delete key binding.
    ; bk("Schematics" "Shift<Key>Escape" "schHiDelete()")
    bk("Schematics" "<Key>b" "schHiCreateBlockInst()")
    bk("Schematics" "<Key>c" "schHiCopy()")
    bk("Schematics" "Shift<Key>c" "geNewWindow()")
    bk("Schematics" "<Key>i" "schHiCreateInst()")
    bk("Schematics" "<Key>h" "schHiHiliteLabel(\"wire\" \"on\")")
    bk("Schematics" "Shift<Key>h" "schHiHiliteLabel(\"wire\" \"off\")")
    bk("Schematics" "<Key>8" "schHiHiliteLabel(\"instance\" \"on\")")
    bk("Schematics" "Shift<Key>8"
    "schHiHiliteLabel(\"instance\" \"off\")")
    bk("Schematics" "<Key>l" "schHiCreateWireLabel()")
    bk("Schematics" "Shift<Key>n" "schHiCreateNoteLabel()")
    bk("Schematics" "Shift<Key>l" "schHiCreateNoteLabel()")
    bk("Schematics" "<Key>m" "schHiStretch()")
    bk("Schematics" "Shift<Key>m" "schHiMove()")
    bk("Schematics" "<Key>p" "schHiCreatePin()")
    bk("Schematics" "<Key>5" "schHiRouteFlightLine()")
    bk("Schematics" "<Key>r" "schHiRotate()")
    bk("Schematics" "Ctrl<Key>r EF" "schSetEnv(\"upsideDown\" t)")
    bk("Schematics" "Shift<Key>r EF" "schSetEnv(\"sideways\" t)")
    bk("Schematics" "<Key>r EF" "schSetEnv(\"rotate\" t)")
    bk("Schematics" "<Key>w" "schHiCreateWire(0.0)")
    bk("Schematics" "Shift<Key>w"
    "schHiCreateWire(schGetEnv(\"defWideWireWidth\"))")
    bk("Schematics" "<Key>x" "schHiCheck(\"run\")")
    bk("Schematics" "Shift<Key>x" "schHiCheckAndSave()")
    bk("Schematics" "Shift<Key>e" "schHiDescendEdit()")
    bk("Schematics" "Shift<Key>r" "schHiDescendRead()")
    bk("Schematics" "<Key>e" "schHiEditInPlace()")
    bk("Schematics" "Ctrl<Key>e" "schHiReturn()")
    bk("Schematics" "Ctrl<Key>w" "schHiReturnToTop()")
    bk("Schematics" "<Key>n" "schHiCreateNoteShape()")
    bk("Schematics" "<Key>d" "schHiDelete()")

    bk("Schematics" "<Key>s EF" "schSnapToConn()") ; note: if you
    ; change the key binding for schSnapToConn()
    ; you can also change the Add>>Wire command
    ; prompts by setting the global skill variable
    ; schgWirePromptToAppend =
    ; " or snap to diamond using {your bind key}."
    ; in your .cdsinit file.

    ; General bindkeys (prefix "Symbol"). These bindkeys are bound to
    ; graphics editor ("ge") and human interface ("hi") functionality.
    ;
    bk("Symbol" "<Key>F6" "hiRedraw()")
    bk("Symbol" "<Key>Down" "geScroll(nil \"s\" nil)")
    bk("Symbol" "<Key>Up" "geScroll(nil \"n\" nil)")
    bk("Symbol" "<Key>Right" "geScroll(nil \"e\" nil)")
    bk("Symbol" "<Key>Left" "geScroll(nil \"w\" nil)")
    bk("Symbol" "<Key>a" "geSingleSelectPoint()")
    bk("Symbol" "Ctrl<Key>a" "geSelectAllFig()")
    bk("Symbol" "Shift<Key>a" "geSingleSelectBox()")
    bk("Symbol" "<Key>d" "schHiDelete()")
    bk("Symbol" "Ctrl<Key>d" "geDeselectAllFig()")
    bk("Symbol" "Shift<Key>d" "geSubSelectBox()")
    bk("Symbol" "<Key>f"
    "schZoomFit(1.0 0.9)")
    bk("Symbol" "Ctrl<Key>f" "schSetSelectOptions()")
    bk("Symbol" "Shift<Key>f"
    "hiZoomAbsoluteScale(getCurrentWindow() 0.9)")
    bk("Symbol" "<Key>o" "schHiDisplayOptions()")
    bk("Symbol" "Shift<Key>o" "schHiEditorOptions()")
    bk("Symbol" "Ctrl<Key>o" "schHiGridOptions()")
    bk("Symbol" "<Key>q" "schHiObjectProperty()")
    bk("Symbol" "<Key>q EF" "schHiObjectProperty()")
    bk("Symbol" "Shift<Key>q" "schHiCellViewProperty()")
    bk("Symbol" "Shift<Key>q EF" "schHiCellViewProperty()")
    bk("Symbol" "<Key>u" "hiUndo()")
    bk("Symbol" "Shift<Key>u" "hiRedo()")
    bk("Symbol" "<Key>v" "hiVectorPan()")
    bk("Symbol" "Ctrl<Key>v" "hiFocusToCIW(hiGetCurrentWindow())")
    bk("Symbol" "<Key>z" "hiZoomIn()")
    bk("Symbol" "Ctrl<Key>z" "hiZoomOut()")
    bk("Symbol" "Shift<Key>z" "hiPrevWinView(hiGetCurrentWindow())")
    bk("Symbol" "<Key>["
    "hiZoomRelativeScale(getCurrentWindow() 0.5)")
    bk("Symbol" "<Key>]"
    "hiZoomRelativeScale(getCurrentWindow() 2.0)")
    bk("Symbol" "Shift<Key>s" "schHiSaveCellView()")
    bk("Symbol" "Ctrl<Key>s" "geSaveAs()")
    bk("Symbol" "<Key>9" "geAddNetProbe()")
    bk("Symbol" "Shift<Key>g" "schHiFindMarker()")
    bk("Symbol" "Ctrl<Key>g" "geHiDeleteMarker()")
    bk("Symbol" "<Key>g" "schHiFindMarker()")

    ; Specific bindkeys (prefix "Symbol"). These bindkeys are bound to
    ; schematic editor ("Schematics") functionality.
    ;
    bk("Symbol" "<DrawThru1>" "schDirectEdit(1)")
    bk("Symbol" "Shift<DrawThru1>" "schDirectEdit(2)")
    bk("Symbol" "Ctrl<DrawThru1>" "schDirectEdit(3)")
    bk("Symbol" "None<Btn1Down>(2) EF" "schMouseApplyOrFinish()")
    bk("Symbol" "None<Btn2Down>" "schHiMousePopUp()")
    bk("Symbol" "None<Btn2Down> EF" "schHiMousePopUp()")
    bk("Symbol" "None<Btn3Down>EF" "schCmdOption()")
    bk("Symbol" "Shift<Btn3Down> EF" "schShiftCmdOption()")
    bk("Symbol" "Ctrl<Key>r EF" "schSetEnv(\"upsideDown\" t)")
    bk("Symbol" "Shift<Key>r EF" "schSetEnv(\"sideways\" t)")
    bk("Symbol" "<Key>r EF" "schSetEnv(\"rotate\" t)")

    bk("Symbol" "<Key>r" "schHiRotate(t)")
    bk("Symbol" "<Key>Delete" "schHiDelete()")
    ; Uncomment following line for HP 700 delete key binding.
    ; bk("Symbol" "Shift<Key>Escape" "schHiDelete()")
    bk("Symbol" "<Key>c" "schHiCopy()")
    bk("Symbol" "<Key>l" "schHiCreateSymbolLabel()")
    bk("Symbol" "Shift<Key>n" "schHiCreateNoteLabel()")
    bk("Symbol" "Shift<Key>l" "schHiCreateNoteLabel()")
    bk("Symbol" "Shift<Key>m" "schHiMove()")
    bk("Symbol" "<Key>m" "schHiSymStretch()")
    bk("Symbol" "<Key>n" "schHiCreateNoteShape()")
    bk("Symbol" "<Key>p" "schHiCreateSymbolPin()")
    bk("Symbol" "Ctrl<Key>e" "schHiReturn()")
    bk("Symbol" "<Key>x" "schHiVIC()")

    ;************************************************************
    ;Added by HWI
    ;************************************************************
    bk("Schematics" "<Key>3" "geDeleteAllProbe(getCurrentWindow() t)")
    bk("Schematics" "Ctrl<Key>n" "simRunNetAndSim()")
    bk("Schematics" "<Key>y" "schHiViewToView()")
    bk("Schematics" "<Key>F3" "simInitEnv()")
    bk("Schematics" "Ctrl<Key>x" "hiCloseWindow(getCurrentWindow())")

    bk("Symbol" "Ctrl<Key>x" "hiCloseWindow(getCurrentWindow())")
    bk("Symbol" "<Key>0" "schHiSetSymbolOrigin()")
    ;bk("Symbol" "<Key>w" "schHiCreateSymbolShape("line" "outline")")

    ;************************************************************
    ; Command Interpreter (prefix "Command Interpreter")
    ;************************************************************
    bk("Command Interpreter" "<Key>F2" "ddsOpenLibManager()")
    bk("Command Interpreter" "<Key>F3" "ddsHiOpenCdsLibEditor()")
    bk("Command Interpreter" "Ctrl<Key>x" "ciwHiExit()")
    bk("Command Interpreter" "Ctrl<Key>o" "deOpen()")
    bk("Command Interpreter" "Ctrl<Key>n" "deNew()")
    bk("Command Interpreter" "Ctrl<Key>r" "ddsHiRefresh()")
    bk("Command Interpreter"
    "Ctrl<Key>s" "pipoDisplay(transStreamOutForm)")
    ; bk("Command Interpreter"
    "Shift<Key>s" "pipoDisplay(transStreamInForm)")
    ; bk("Command Interpreter" "Shift<Key>c" "ddsHiCloseData()")
    ;************************************************************
    ;by HWI
    ;************************************************************

    when( schIsHDLCapEnabled(nil)

    ; General bindkeys (prefix "Read HDL").
    ;
    bk("Read HDL" "Ctrl<Key>s" "hiSaveAsViewfile()")
    bk("Read HDL" "Ctrl<Key>e" "schHDLReturn()")
    )

    )

    unalias bk

    ;*******************************************************************************
    ;*******************************************************************************
    ; leBindKeys.il
    ;
    ; This file contains the sample bindKeys that can be used with the
    layout
    ; editor. The procedure 'leInitCommonBindKeys()' sets bindkeys that are
    ; appropriate for all viewTypes.
    ;
    ;*******************************************************************************
    ; $Author: graham $
    ; $Revision: 1.22 $
    ; $Date: 1994/10/07 17:35:26 $
    ; $State: Exp $
    ;*******************************************************************************
    ;*******************************************************************************


    ;*******************************************************************************
    ; The following alias is used to make the bindKey definitions more
    readable.
    ;*******************************************************************************

    alias bk hiSetBindKey


    ;***************************************************************************
    ; Standard Keys

    ;***************************************************************************

    bk("Layout" "<Key>a" "geSingleSelectPoint()")
    bk("Layout" "Shift<Key>a" "geSingleSelectBox()")
    bk("Layout" "Ctrl<Key>a" "geSelectAllFig()")

    bk("Layout" "<Key>b" "geReturnToLevel()")
    bk("Layout" "Shift<Key>b" "geReturn()")

    bk("Layout" "<Key>c" "leHiCopy()")
    bk("Layout" "Shift<Key>c" "leHiChop()")

    bk("Layout" "<Key>d" "leHiDelete()")
    ; bk("Layout" "<Key>d" "geSubSelectPoint()")
    bk("Layout" "Shift<Key>d" "geSubSelectBox()")
    bk("Layout" "Ctrl<Key>d" "geDeselectAllFig()")

    bk("Layout" "<Key>e" "leHiEditDisplayOptions()")
    bk("Layout" "Shift<Key>e" "leHiEditEditorOptions()")
    bk("Layout" "Ctrl<Key>e" "leHiEditInPlace()")

    bk("Layout" "<Key>f" "hiZoomAbsoluteScale(hiGetCurrentWindow()
    0.9)")
    bk("Layout" "Shift<Key>f" "hiGetCurrentWindow()->stopLevel = 20")
    bk("Layout" "Ctrl<Key>f" "hiGetCurrentWindow()->stopLevel = 0")

    bk("Layout" "<Key>g" "leToggleGravity()")
    bk("Layout" "Ctrl<Key>g" "geZoomToGrid(hiGetCurrentWindow())")

    bk("Layout" "<Key>i" "leHiCreateInst()")

    bk("Layout" "<Key>k" "leHiCreateRuler()")
    bk("Layout" "Shift<Key>k" "leHiClearRuler()")

    bk("Layout" "<Key>l" "leHiCreateLabel()")

    bk("Layout" "<Key>m" "leHiMove()")
    bk("Layout" "Shift<Key>m" "leHiMerge()")

    ;bk("Layout" "<Key>n" "leSetFormSnapMode(\"L90XFirst\")")
    bk("Layout" "Ctrl<Key>n" "leSetFormSnapMode(\"diagonal\")")
    bk("Layout" "Shift<Key>n" "leSetFormSnapMode(\"orthogonal\")")

    bk("Layout" "<Key>o" "leHiCreateContact()")

    bk("Layout" "<Key>p" "leHiCreatePath()")
    bk("Layout" "Shift<Key>p" "leHiCreatePolygon()")
    bk("Layout" "Ctrl<Key>p" "leHiCreatePin()")

    bk("Layout" "<Key>q" "leHiEditProp()")
    bk("Layout" "Shift<Key>q" "leEditDesignProperties()")
    bk("Layout" "Ctrl<Key>q" "geSaveWinView()")

    bk("Layout" "<Key>r" "leHiCreateRect()")
    bk("Layout" "Shift<Key>r" "leHiReShape()")
    bk("Layout" "Ctrl<Key>r" "hiRedraw()")
    bk("Layout" "Shift<Key>o" "leHiRotate()")

    bk("Layout" "<Key>s" "leHiStretch()")
    bk("Layout" "Shift<Key>s" "leHiSearch()")
    bk("Layout" "Ctrl<Key>s" "leHiSplit()")

    bk("Layout" "<Key>t" "leHiLayerTap()")
    bk("Layout" "Shift<Key>t" "leHiTree()")

    bk("Layout" "<Key>u" "hiUndo()")
    bk("Layout" "Shift<Key>u" "hiRedo()")

    ; bk("Layout" "<Key>v" "hiPan()")
    bk("Layout" "Shift<Key>v" "leHiAttach()")
    bk("Layout" "Ctrl<Key>v" "hiFocusToCIW(hiGetCurrentWindow())")

    bk("Layout" "<Key>w" "hiPrevWinView(hiGetCurrentWindow())")
    bk("Layout" "Shift<Key>w" "hiNextWinView(hiGetCurrentWindow())")
    ; bk("Layout" "Ctrl<Key>w" "hiCloseWindow(hiGetCurrentWindow())")
    bk("Layout" "Ctrl<Key>w" "geRestoreWinView()")

    bk("Layout" "<Key>x" "leHiFlatten()")
    bk("Layout" "Shift<Key>x" "leHiDescend()")
    ;bk("Layout"
    "Ctrl<Key>x" "leEIPZoomAbsoluteScale(hiGetCurrentWindow() 0.9)")
    bk("Layout" "Ctrl<Key>x" "leCloseWindow()")
    bk("Layout" "<Key>f" "hiZoomAbsoluteScale(hiGetCurrentWindow()
    0.9)")

    bk("Layout" "<Key>y" "leHiYank()")
    bk("Layout" "Shift<Key>y" "leHiPaste()")

    bk("Layout" "<Key>z" "hiZoomIn()")
    bk("Layout" "Shift<Key>z" "hiZoomRelativeScale(hiGetCurrentWindow()
    0.5)")
    bk("Layout" "Ctrl<Key>z" "hiZoomRelativeScale(hiGetCurrentWindow()
    2.0)")


    bk("Layout" "<Key>1" "leDisplayOptionsForm->stop->value = 1")
    bk("Layout" "<Key>2" "leDisplayOptionsForm->stop->value = 2")
    bk("Layout" "<Key>3" "leDisplayOptionsForm->stop->value = 3")
    bk("Layout" "<Key>4" "leDisplayOptionsForm->stop->value = 4")
    bk("Layout" "<Key>5" "leDisplayOptionsForm->stop->value = 5")

    bk("Layout" "<Key>." "leDisplayOptionsForm->segSnapMode->value =
    \"orthogonal\"")
    bk("Layout" "Shift<Key>." "leDisplayOptionsForm->segSnapMode->value
    = \"anyAngle\"")

    bk("Layout" "<Key>;" "hiFormDone(leDisplayOptionsForm)")


    ;***************************************************************************
    ; Special Keys

    ;***************************************************************************

    bk("Layout" "<Key>Escape EF" "cancelEnterFun()")

    bk("Layout" "<Key>Delete" "leHiDelete()" )
    bk("Layout" "<Key>BackSpace" "leHiDelete()" )
    bk("Layout" "<Key>Tab" "hiPan()")


    bk("Layout" "<Key>F1" "hiZoomAbsoluteScale(hiGetCurrentWindow()
    0.9)")
    bk("Layout" "<Key>F2" "geSave()")
    bk("Layout" "<Key>F5" "deOpen()")
    bk("Layout" "<Key>F10" "hiHelp('window
    deGetAppInfo(deGetEditViewType(hiGetCurrentWindow()))->appName)")




    ;***************************************************************************
    ; Numeric Key Pad (Window Panning Functions)

    ;***************************************************************************

    legRpDelta = 0.5

    bk("Layout" "<Key>R7" "geScroll(nil \"nw\" nil)")
    bk("Layout" "<Key>Up" "geScroll(nil \"n\" nil)")
    bk("Layout" "<Key>R9" "geScroll(nil \"ne\" nil)")
    bk("Layout" "<Key>Left" "geScroll(nil \"w\" nil)")
    bk("Layout" "<Key>R11" "geScroll(nil \"\" nil)")
    bk("Layout" "<Key>Right" "geScroll(nil \"e\" nil)")
    bk("Layout" "<Key>R13" "geScroll(nil \"sw\" nil)")
    bk("Layout" "<Key>Down" "geScroll(nil \"s\" nil)")
    bk("Layout" "<Key>R15" "geScroll(nil \"se\" nil)")

    bk("Layout" "<Key>KP_Enter" "mouseAddPt()")
    bk("Layout" "<Key>KP_Add" "leHiSetRefPoint()")
    bk("Layout"
    "<Key>KP_Subtract" "leSetRefPointInactive(geGetEditCellView())")

    bk("Layout" "<Key>KP_Equal" "legRpDelta = 0.5")
    bk("Layout" "<Key>KP_Divide" "legRpDelta = 1.0")
    bk("Layout" "<Key>KP_Multiply" "legRpDelta = 2.0")

    bk("Layout" "<Key>R4" "legRpDelta = 0.5")
    bk("Layout" "<Key>R5" "legRpDelta = 1.0")
    bk("Layout" "<Key>R6" "legRpDelta = 2.0")

    bk("Layout" "Shift<Key>R7" "leMoveCursor(-legRpDelta
    legRpDelta)")
    bk("Layout" "Shift<Key>Up" "leMoveCursor( 0
    legRpDelta)")
    bk("Layout" "Shift<Key>R9" "leMoveCursor( legRpDelta
    legRpDelta)")
    bk("Layout" "Shift<Key>Left" "leMoveCursor(-legRpDelta
    0)")
    bk("Layout" "Shift<Key>R11" "leMoveCursorToRefPoint()")
    bk("Layout" "Shift<Key>Right" "leMoveCursor( legRpDelta
    0)")
    bk("Layout" "Shift<Key>R13" "leMoveCursor(-legRpDelta
    -legRpDelta)")
    bk("Layout" "Shift<Key>Down" "leMoveCursor(0
    -legRpDelta)")
    bk("Layout" "Shift<Key>R15" "leMoveCursor( legRpDelta
    -legRpDelta)")

    bk("Layout" "Ctrl<Key>R7" "geScroll(nil \"nw\" t)")
    bk("Layout" "Ctrl<Key>Up" "geScroll(nil \"n\" t)")
    bk("Layout" "Ctrl<Key>R9" "geScroll(nil \"ne\" t)")
    bk("Layout" "Ctrl<Key>Left" "geScroll(nil \"w\" t)")
    bk("Layout" "Ctrl<Key>R11" "geScroll(nil \"\" t)")
    bk("Layout" "Ctrl<Key>Right" "geScroll(nil \"e\" t)")
    bk("Layout" "Ctrl<Key>R13" "geScroll(nil \"sw\" t)")
    bk("Layout" "Ctrl<Key>Down" "geScroll(nil \"s\" t)")
    bk("Layout" "Ctrl<Key>R15" "geScroll(nil \"se\" t)")


    ;***************************************************************************
    ; Created by HWI

    ;***************************************************************************
    bk("Layout" "<Key>n" "leSetFormSnapMode(\"anyAngle\")")
    bk("Layout" "Ctrl<Key>m" "leHiMakeCell()")
    bk("Layout" "Shift<Key>r EF" "leSetEnv(\"sideways\" t)")
    bk("Layout" "Ctrl<Key>r EF" "leSetEnv(\"upsideDown\" t)")
    bk("Layout" "<Key>0" "leHiMoveOrigin()")

    ;bk("Layout" "<Key>j" "mgc_calibre_run_drc t")
    ;bk("Layout" "Shift<Key>j" "mgc_calibre_run_lvs t")
    bk("Layout" "<Key>j" "mgc_calibre_run_drc")
    bk("Layout" "Shift<Key>j" "mgc_calibre_run_lvs")
    bk("Layout" "Shift<Key>l" "mgc_rve_delete_markers")

    ;***************************************************************************

    unalias bk
     
    linkin, Nov 12, 2006
    #2
  3. This is not weird this is default behaviour
    the bindkeys have to be loaded first.

    load( prependInstallPath( "/samples/local/schBindKeys.il" ) )
    load( prependInstallPath( "/samples/local/leBindKeys.il" ) )

    put these two lines of code in your .cdsinit file.

    Bernd
     
    Bernd Fischer, Nov 13, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.