mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 11:21:33 +00:00
When showing mapdata, background, or help panel, hide others
This commit is contained in:
@@ -294,8 +294,10 @@ iD.ui.Background = function(context) {
|
||||
update();
|
||||
setOpacity(opacityDefault);
|
||||
|
||||
var keybinding = d3.keybinding('background');
|
||||
keybinding.on(key, toggle);
|
||||
var keybinding = d3.keybinding('background')
|
||||
.on(key, toggle)
|
||||
.on('F', hide)
|
||||
.on('H', hide);
|
||||
|
||||
d3.select(document)
|
||||
.call(keybinding);
|
||||
|
||||
@@ -140,7 +140,9 @@ iD.ui.Help = function(context) {
|
||||
clickHelp(docs[0], 0);
|
||||
|
||||
var keybinding = d3.keybinding('help')
|
||||
.on(key, toggle);
|
||||
.on(key, toggle)
|
||||
.on('B', hide)
|
||||
.on('F', hide);
|
||||
|
||||
d3.select(document)
|
||||
.call(keybinding);
|
||||
|
||||
@@ -314,7 +314,9 @@ iD.ui.MapData = function(context) {
|
||||
|
||||
var keybinding = d3.keybinding('features')
|
||||
.on(key, togglePanel)
|
||||
.on('W', toggleWireframe);
|
||||
.on('W', toggleWireframe)
|
||||
.on('B', hidePanel)
|
||||
.on('H', hidePanel);
|
||||
|
||||
// keybinding.on('m', function() {
|
||||
// context.enter(iD.modes.SelectImage(context));
|
||||
|
||||
Reference in New Issue
Block a user