Remove maximization

This is low utility now that iD is full-width when
embedded, and the key combination conflicts with "Move".

Fixes #1482
This commit is contained in:
John Firebaugh
2013-08-21 17:56:38 -07:00
parent 57371ed515
commit f58120df37
2 changed files with 2 additions and 7 deletions
+1 -5
View File
@@ -24,7 +24,7 @@ window.iD = function () {
};
var history = iD.History(context),
dispatch = d3.dispatch('enter', 'exit', 'toggleFullscreen'),
dispatch = d3.dispatch('enter', 'exit'),
mode,
container,
ui = iD.ui(context),
@@ -224,10 +224,6 @@ window.iD = function () {
return assetMap[asset] || assetPath + asset;
};
context.toggleFullscreen = function() {
dispatch.toggleFullscreen();
};
return d3.rebind(context, dispatch, 'on');
};
+1 -2
View File
@@ -145,8 +145,7 @@ iD.ui = function(context) {
.on('←', pan([pa, 0]))
.on('↑', pan([0, pa]))
.on('→', pan([-pa, 0]))
.on('↓', pan([0, -pa]))
.on('M', function() { context.toggleFullscreen(); });
.on('↓', pan([0, -pa]));
d3.select(document)
.call(keybinding);