mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
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:
+1
-5
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user