aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-14 09:29:56 +1200
committerGitHub <noreply@github.com>2017-09-14 09:29:56 +1200
commit4193ac77fd9f0da264284a6f73601963995554c8 (patch)
treee68c8eaa6c05ea164d6eedf5feca80cd81b9e6e6
parent31a6fed66b4f077d2b6443fdd34229befe8777c3 (diff)
parentaf448fb7f9469832790dcc688686a3fc936e625e (diff)
downloadetbsa-traccar-web-4193ac77fd9f0da264284a6f73601963995554c8.tar.gz
etbsa-traccar-web-4193ac77fd9f0da264284a6f73601963995554c8.tar.bz2
etbsa-traccar-web-4193ac77fd9f0da264284a6f73601963995554c8.zip
Merge pull request #586 from Abyss777/keyboard_zoom
Make keyboard zoom and pan working
-rw-r--r--web/app/view/map/BaseMap.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js
index 30ac23e..32fb17d 100644
--- a/web/app/view/map/BaseMap.js
+++ b/web/app/view/map/BaseMap.js
@@ -175,6 +175,8 @@ Ext.define('Traccar.view.map.BaseMap', {
view: this.mapView
});
+ this.body.dom.tabIndex = 0;
+
switch (Traccar.app.getAttributePreference('distanceUnit', 'km')) {
case 'mi':
this.map.addControl(new ol.control.ScaleLine({