(event)
| 627 | }; |
| 628 | |
| 629 | function getModifiers(event) { |
| 630 | var mods = []; |
| 631 | if (event.ctrlKey) { |
| 632 | mods.push('ctrl'); |
| 633 | } |
| 634 | if (event.altKey) { |
| 635 | mods.push('alt'); |
| 636 | } |
| 637 | if (event.shiftKey) { |
| 638 | mods.push('shift'); |
| 639 | } |
| 640 | if (event.metaKey) { |
| 641 | mods.push('meta'); |
| 642 | } |
| 643 | return mods; |
| 644 | } |
| 645 | |
| 646 | /* |
| 647 | * return a copy of an object with only non-object keys |