Focus restore modal buttons

This commit is contained in:
Ansis Brammanis
2013-02-28 10:58:55 -05:00
parent 56a3edcf7f
commit d70f123107
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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();
};
};