Commit Graph

8 Commits

Author SHA1 Message Date
Bryan Housel
5782761e48 support zoom in/out with shifted or unshifted keys +,-,=,_
also add new Firefox-specific keycodes to `d3.keybinding.js`
closes #2389
2014-10-12 00:43:39 -04:00
John Firebaugh
66afcd9923 Platform-specific keybindings
Specifying keybindings that use a command key (⌘ on Mac,
Ctrl on Win/Linux) using the appropriate Mac binding, e.g.
'⌘Z'. Use iD.ui.cmd to translate it to an appropriate key
string for other platforms, e.g. 'Ctrl+Z'.
2013-02-11 11:24:05 -08:00
Tom MacWright
6faf7a27c4 Support zooming with keyboard. Fixes #695 2013-02-09 18:02:09 -05:00
John Firebaugh
ff15aa8e7b Rewrite d3.keybinding
A keybinding now represents a set of key commands that can
be unbound as a set. Multiple keybindings are possible, and,
providing a namespace is provided to the constructor, will
not conflict with each other.

Also, key combination strings such as ⌘+A are now supported.
2013-01-22 14:55:08 -05:00
John Firebaugh
304a9c3603 Add symbol for delete key 2012-12-13 17:39:07 -08:00
John Firebaugh
a58a07277a Simplify d3.keybinding
Remove window.__onfocus property; it triggers mocha's leak detection.
Calculate modifiers using the even properties instead.
2012-12-13 17:39:06 -08:00
Tom MacWright
ddbf50345d Reintroduce keybindings for deleting features 2012-12-04 16:26:00 -05:00
Tom MacWright
4978cd0c12 Resurface keybindings 2012-12-04 15:51:42 -05:00