mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix: Ctrl+Shift+B also swaps between the background like Ctrl+B
(closes #4153)
This commit is contained in:
@@ -305,13 +305,19 @@ export function uiBackground(context) {
|
||||
|
||||
|
||||
function toggle() {
|
||||
if (d3.event) d3.event.preventDefault();
|
||||
if (d3.event) {
|
||||
d3.event.preventDefault();
|
||||
}
|
||||
tooltipBehavior.hide(button);
|
||||
setVisible(!button.classed('active'));
|
||||
}
|
||||
|
||||
|
||||
function quickSwitch() {
|
||||
if (d3.event) {
|
||||
d3.event.stopImmediatePropagation();
|
||||
d3.event.preventDefault();
|
||||
}
|
||||
if (previous) {
|
||||
clickSetSource(previous);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,10 @@ export function uiInfo(context) {
|
||||
|
||||
|
||||
function toggle(which) {
|
||||
if (d3.event) d3.event.preventDefault();
|
||||
if (d3.event) {
|
||||
d3.event.stopImmediatePropagation();
|
||||
d3.event.preventDefault();
|
||||
}
|
||||
|
||||
var activeids = ids.filter(function(k) { return active[k]; });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user