1
0
Fork 0
forked from 0x2620/oxjs

Ox.Map: meta+click on selected place now deselects it (fixes #655)

This commit is contained in:
rlx 2012-04-23 10:28:42 +00:00
commit fa146ebbba
3 changed files with 24 additions and 11 deletions

View file

@ -142,7 +142,16 @@ Ox.Map = function(options, self) {
key_left: function() {
pan(-1, 0);
},
key_meta: function() {
// FIXME:
'key_meta.left': function() {
self.metaKey = true;
$(document).one({
keyup: function() {
self.metaKey = false;
}
});
},
'key_meta.right': function() {
self.metaKey = true;
$(document).one({
keyup: function() {