GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing maxgraph.github.io — KeyHandler | @maxgraph/core
Class KeyHandlerEvent handler that listens to keystroke events. This is not a singleton, however, it is normally only required once if the target is the document element (default). This handler installs a key event listener in the topmost DOM node and processes all events that originate from descendants of AbstractGraph.container or from the topmost DOM node. The latter means that all unhandled keystrokes are handled by this object regardless of the focused state of the graph. ExampleThe following example creates a key handler that listens to the delete key (46) and deletes the selection cells if the graph is enabled.
KeycodesSee http://tinyurl.com/yp8jgl or http://tinyurl.com/229yqw for a list of keycodes or install a key event listener into the document element and print the key codes of the respective events to the console. To support the Command key and the Control key on the Mac, the following code can be used.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |