ajaxorg/ace — pull request #1850 by rksm (2014-03-12 13:49:53+00:00)
Title: WIP: Key simulation

This implements a simple form of triggering commands and insertions by simulating keys. Like:

```js
var keys = require('ace/lib/keys');
keys.simulateKey(editor, 'Shift-Right');
keys.simulateKey(editor, 'Command-Shift-d');
keys.simulateKey(editor, 'Control-a');
/*...*/
```

todo:

- [ ] support series of keys (like `keys.simulateKey(editor, 'Right Right Command-Down')`)
- [ ] base `keys.send` / old vim sendKeys code onto simulateKey