mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Focus restore modal buttons
This commit is contained in:
@@ -6,7 +6,7 @@ iD.ui.RadialMenu = function(operations) {
|
||||
if (!operations.length)
|
||||
return;
|
||||
|
||||
selection.node().focus();
|
||||
selection.node().parentNode.focus();
|
||||
|
||||
function click(operation) {
|
||||
d3.event.stopPropagation();
|
||||
|
||||
+3
-1
@@ -22,7 +22,7 @@ iD.ui.Restore = function(context) {
|
||||
.append('div')
|
||||
.attr('class', 'button-wrap joined col6');
|
||||
|
||||
buttons.append('button')
|
||||
var restore = buttons.append('button')
|
||||
.attr('class', 'save action button col6')
|
||||
.text(t('restore.restore'))
|
||||
.on('click', function() {
|
||||
@@ -37,5 +37,7 @@ iD.ui.Restore = function(context) {
|
||||
context.history().clearSaved();
|
||||
modal.remove();
|
||||
});
|
||||
|
||||
restore.node().focus();
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user