mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
FF can't focus an SVG element
This commit is contained in:
@@ -52,7 +52,11 @@ iD.modes.Select = function(context, selection) {
|
||||
};
|
||||
|
||||
mode.reselect = function() {
|
||||
context.surface().node().focus();
|
||||
var surfaceNode = context.surface().node();
|
||||
if (surfaceNode.focus) { // FF doesn't support it
|
||||
surfaceNode.focus();
|
||||
}
|
||||
|
||||
positionMenu();
|
||||
showMenu();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user