change keyboard shortcuts; update tooltips
- "Load Track as Route" is now triggered by pressing `Shift-O` - "Load No-Go-Areas" is now triggered by pressing `Shift-N` - tooltip for navbar link is updated an ready for translation
This commit is contained in:
parent
bc26eb3042
commit
d1285baa69
5 changed files with 32 additions and 17 deletions
|
|
@ -5,6 +5,7 @@ BR.NogoAreas = L.Control.extend({
|
|||
enable: 78, // char code for 'n'
|
||||
disable: 27, // char code for 'ESC'
|
||||
},
|
||||
import: 78, // char code for 'n'; used in conjunction with 'shift'
|
||||
},
|
||||
},
|
||||
|
||||
|
|
@ -147,6 +148,13 @@ BR.NogoAreas = L.Control.extend({
|
|||
if (!BR.Util.keyboardShortcutsAllowed(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (true === e.shiftKey && e.keyCode === this.options.shortcut.import) {
|
||||
$('#loadNogos').modal('show');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.keyCode === this.options.shortcut.draw.disable && this.button.state() === BR.NogoAreas.STATE_CANCEL) {
|
||||
this.stopDrawing(this.button);
|
||||
} else if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue