forked from 0x2620/oxjs
make map zoom work while list has focus
This commit is contained in:
parent
05af51f76b
commit
74802d284a
5 changed files with 19 additions and 3 deletions
|
|
@ -244,6 +244,18 @@ Ox.ListMap = function(options, self) {
|
|||
.bindEvent({
|
||||
'delete': removeItem,
|
||||
init: initList,
|
||||
key_0: function() {
|
||||
self.$map.panToPlace();
|
||||
},
|
||||
key_equal: function() {
|
||||
self.$map.zoom(1);
|
||||
},
|
||||
key_minus: function() {
|
||||
self.$map.zoom(-1);
|
||||
},
|
||||
key_shift_0: function() {
|
||||
self.$map.zoomToPlace();
|
||||
},
|
||||
load: function() {
|
||||
that.triggerEvent('loadlist');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue