ComPDFKit Web SDK
    Preparing search index...

    Variable ShortcutsConst

    Shortcuts: {
        ARROW: "arrow";
        CALLOUT: "callout";
        CLOSE: "close";
        COPY: "copy";
        ELLIPSE: "ellipse";
        ERASER: "eraser";
        FIT_SCREEN_WIDTH: "fitScreenWidth";
        FREEHAND: "freehand";
        FREETEXT: "freetext";
        HIGHLIGHT: "highlight";
        IMAGE: "image";
        LINE: "line";
        NEXT_PAGE: "nextPage";
        NUMPAD_ROTATE_CLOCKWISE: "numpadRotateClockwise";
        NUMPAD_ROTATE_COUNTER_CLOCKWISE: "numpadRotateCounterClockwise";
        NUMPAD_ZOOM_IN: "numpadZoomIn";
        NUMPAD_ZOOM_OUT: "numpadZoomOut";
        PAN: "pan";
        PASTE: "paste";
        PREVIOUS_PAGE: "previousPage";
        PRINT: "print";
        RECTANGLE: "rectangle";
        REDO: "redo";
        ROTATE_CLOCKWISE: "rotateClockwise";
        ROTATE_COUNTER_CLOCKWISE: "rotateCounterClockwise";
        RUBBER_STAMP: "rubberStamp";
        SEARCH: "search";
        SELECT: "select";
        SIGNATURE: "signature";
        SQUIGGLY: "squiggly";
        STICKY_NOTE: "stickyNote";
        STRIKEOUT: "strikeout";
        SWITCH_PAN: "switchPan";
        UNDERLINE: "underline";
        UNDO: "undo";
        ZOOM_IN: "zoomIn";
        ZOOM_OUT: "zoomOut";
    }

    Names of the shortcuts the viewer implements (UI.Shortcuts); use them with UI.hotkeys and the keyboardShortcut user setting. The standard keys listed for each are the keys UI.hotkeys.on(key) maps to the shortcut. By default only copy, paste, undo, redo and Escape (select) are bound.

    Type Declaration

    • ReadonlyARROW: "arrow"

      Selects the arrow tool. Standard keys: a.

    • ReadonlyCALLOUT: "callout"

      Selects the callout tool. Standard keys: c.

    • ReadonlyCLOSE: "close"

      Closes the open tooltip. Standard keys: x.

    • ReadonlyCOPY: "copy"

      Copies the selected annotations, text or content boxes. Standard keys: ctrl+c, command+c.

    • ReadonlyELLIPSE: "ellipse"

      Selects the ellipse tool. Standard keys: o.

    • ReadonlyERASER: "eraser"

      Selects the eraser tool. Standard keys: e.

    • ReadonlyFIT_SCREEN_WIDTH: "fitScreenWidth"

      Fits the whole page in the viewer (fits the width on mobile devices). Standard keys: ctrl+0, command+0.

    • ReadonlyFREEHAND: "freehand"

      Selects the freehand tool. Standard keys: f.

    • ReadonlyFREETEXT: "freetext"

      Selects the free text tool. Standard keys: t.

    • ReadonlyHIGHLIGHT: "highlight"

      Selects the highlight tool. Standard keys: h.

    • ReadonlyIMAGE: "image"

      Selects the image stamp tool. Standard keys: i.

    • ReadonlyLINE: "line"

      Selects the line tool. Standard keys: l.

    • ReadonlyNEXT_PAGE: "nextPage"

      Goes to the next page. Standard keys: pagedown.

    • ReadonlyNUMPAD_ROTATE_CLOCKWISE: "numpadRotateClockwise"

      Rotates the view clockwise (numeric keypad keys). Standard keys: ctrl+shift+num_add, command+shift+num_add.

    • ReadonlyNUMPAD_ROTATE_COUNTER_CLOCKWISE: "numpadRotateCounterClockwise"

      Rotates the view counterclockwise (numeric keypad keys). Standard keys: ctrl+shift+num_subtract, command+shift+num_subtract.

    • ReadonlyNUMPAD_ZOOM_IN: "numpadZoomIn"

      Zooms in (numeric keypad keys). Standard keys: ctrl+num_add, command+num_add.

    • ReadonlyNUMPAD_ZOOM_OUT: "numpadZoomOut"

      Zooms out (numeric keypad keys). Standard keys: ctrl+num_subtract, command+num_subtract.

    • ReadonlyPAN: "pan"

      Switches to the pan tool. Standard keys: p.

    • ReadonlyPASTE: "paste"

      Pastes copied annotations or content boxes. Standard keys: ctrl+v, command+v.

    • ReadonlyPREVIOUS_PAGE: "previousPage"

      Goes to the previous page. Standard keys: pageup.

    • ReadonlyPRINT: "print"

      Opens the print dialog. Standard keys: ctrl+p, command+p.

    • ReadonlyRECTANGLE: "rectangle"

      Selects the rectangle tool. Standard keys: r.

    • ReadonlyREDO: "redo"

      Redoes the last undone change. Standard keys: ctrl+y, command+shift+z.

    • ReadonlyROTATE_CLOCKWISE: "rotateClockwise"

      Rotates the view clockwise. Standard keys: ctrl+shift+=, command+shift+=.

    • ReadonlyROTATE_COUNTER_CLOCKWISE: "rotateCounterClockwise"

      Rotates the view counterclockwise. Standard keys: ctrl+shift+-, command+shift+-.

    • ReadonlyRUBBER_STAMP: "rubberStamp"

      Selects the rubber stamp tool. Standard keys: q.

    • Opens or closes the search panel. Standard keys: ctrl+f, command+f.

    • ReadonlySELECT: "select"

      Switches to the selection tool. Standard keys: escape.

    • ReadonlySIGNATURE: "signature"

      Selects the signature tool. Standard keys: s.

    • ReadonlySQUIGGLY: "squiggly"

      Selects the squiggly underline tool. Standard keys: g.

    • ReadonlySTICKY_NOTE: "stickyNote"

      Selects the sticky note tool. Standard keys: n.

    • ReadonlySTRIKEOUT: "strikeout"

      Selects the strikeout tool. Standard keys: k.

    • ReadonlySWITCH_PAN: "switchPan"

      Switches to the pan tool while the key is held. Standard keys: space.

    • ReadonlyUNDERLINE: "underline"

      Selects the underline tool. Standard keys: u.

    • ReadonlyUNDO: "undo"

      Undoes the last change. Standard keys: ctrl+z, command+z.

    • ReadonlyZOOM_IN: "zoomIn"

      Zooms in. Standard keys: ctrl+=, command+=.

    • ReadonlyZOOM_OUT: "zoomOut"

      Zooms out. Standard keys: ctrl+-, command+-.