Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/drawing/manager/keys.js

  • Provides:

    • dojox.drawing.manager.keys
  • dojox.drawing.manager.keys

    • summary
      A singleton, master object that detects
      keyboard keys and events
      Connect to it like:
      dojo.connect(this.keys, "onEnter", ....);
    • type
      Object
  • dojox.drawing.manager.keys.arrowIncrement

    • type
      Number
    • summary
      The amount, in pixels, a selected Stencil will
      move on an arrow key event
  • dojox.drawing.manager.keys.arrowShiftIncrement

    • type
      Number
    • summary
      The amount, in pixels, a selected Stencil will
      move on an arrow key + SHIFT event
  • dojox.drawing.manager.keys.shift

    • tags: readonly
    • type
      Boolean
    • summary
      Indicates whether the Shift key is currently pressed
  • dojox.drawing.manager.keys.ctrl

    • tags: readonly
    • type
      Boolean
    • summary
      Indicates whether the Control key is currently pressed
  • dojox.drawing.manager.keys.alt

    • tags: readonly
    • type
      Boolean
    • summary
      Indicates whether the Alt or Option key is currently pressed
  • dojox.drawing.manager.keys.cmmd

    • tags: readonly
    • type
      Boolean
    • summary
      Indicates whether the Apple Command key is currently pressed
      
      
      apple key
  • dojox.drawing.manager.keys.meta

    • tags: readonly
    • type
      Boolean
    • summary
      Indicates whether any 'meta' key is currently pressed:
      shift || ctrl || cmmd || alt
      
      
      any meta key
  • dojox.drawing.manager.keys.onDelete

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when Delete key is released
    • type
      Function
  • dojox.drawing.manager.keys.onEsc

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when ESC key is released
    • type
      Function
  • dojox.drawing.manager.keys.onEnter

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when Enter key is released
    • type
      Function
  • dojox.drawing.manager.keys.onArrow

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when an Arrow key is released
      You will have to further check if evt.keyCode
      is 37,38,39, or 40
    • type
      Function
  • dojox.drawing.manager.keys.onKeyDown

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when any key is pressed
    • type
      Function
  • dojox.drawing.manager.keys.onKeyUp

    • parameters:
      • evt: (typeof Event)
    • summary
      Event fires when any key is released
    • type
      Function
  • dojox.drawing.manager.keys.listeners

    • type
      Array
  • dojox.drawing.manager.keys.register

    • parameters:
      • options
    • summary
      Register an object and callback to be notified
      of events.
      NOTE: Not really used in code, but should work.
      See manager.mouse for similar usage
    • type
      Function
  • dojox.drawing.manager.keys._getLetter

    • parameters:
      • evt
    • type
      Function
  • dojox.drawing.manager.keys._mixin

    • parameters:
      • evt
    • summary
      Internal. Mixes in key events.
    • type
      Function
  • dojox.drawing.manager.keys.editMode

    • parameters:
      • _isedit
    • summary
      Relinquishes control of events to another portion
      of Drawing; namely the TextBlock.
    • type
      Function
  • dojox.drawing.manager.keys.enable

    • parameters:
      • _enabled
    • summary
      Enables or disables key events, to relinquish
      control to something outside of Drawing; input
      fields for example.
      You may need to call this directly if you are
      using textareas or contenteditables.
      NOTE: See scanForFields
    • type
      Function
  • dojox.drawing.manager.keys.scanForFields

    • summary
      Scans the document for inputs
      and calls this automatically. However you may need
      to call this if you create inputs after the fact.
    • type
      Function
  • dojox.drawing.manager.keys.scanForFields._fieldCons

    • type
      Array
  • dojox.drawing.manager.keys.init

    • summary
      Initialize the keys object
      
      a little extra time is needed in some browsers
    • type
      Function
  • dojox.drawing.manager

    • type
      Object
  • dojox.drawing

    • type
      Object
  • dojox

    • type
      Object