Commit graph

12 commits

Author SHA1 Message Date
Henrik Fehlauer
08c8cfa8be Prevent more accidental shortcut triggers
Do not allow browser keyboard shortcuts to trigger route functions,
e.g. pressing Ctrl+P triggers printing in most browsers, but should not
at the same time switch BRouter-Web to POI mode. This can be prevented
by filtering for modifiers.

In the same fashion, when modal dialogs or dropdowns are open it should
not be possible to activate map functions in the background now.

Finally, inhibit shortcuts in number input fields too, as found in the
editable number input fields in the customize profile options.
Previously only regular text input fields were protected.

To make those checks easier to use, they are deduplicated and moved to
Util.js.
2020-05-28 18:00:00 +00:00
Stefan Siegl
64202a451c
Allow to mute route 2020-06-06 21:47:58 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Norbert Renner
ab467a94ab Improve opacity slider (#215)
- adopt horizontal styles
- common font size for layers tab
- adopt to layer switcher layout with slider as child of label element
- separate slider wrapper from control, as overlay slider is none
- migrate localStorage legacy key
2019-08-02 19:39:47 +02:00
Phyks (Lucas Verney)
7666daa10f Add an overlay opacity slider 2019-07-16 12:25:52 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Norbert Renner
76e2618bbf Leaflet 1.0: fix also dragging map with opacity slider in Chrome;
update slider version; disable text selection while dragging in Firefox; 
no outline in Firefox
2017-08-08 18:59:12 +02:00
Norbert Renner
514cc705ef catch SecurityError with localStorage, fixes #47 2016-10-05 11:49:54 +02:00
Norbert Renner
83ce7ff79a default opacity 0.67 (#36) 2016-06-14 17:03:16 +02:00
Norbert Renner
2b6be76cc4 reset slider on page load to minimum opacity, fixes #22 2015-07-24 14:58:47 +02:00
Norbert Renner
d30684b6c8 add opacity slider (bootstrap-slider) for route track and markers 2015-05-21 20:16:04 +02:00