improve navigating saving with keyboard

This commit is contained in:
Ansis Brammanis
2013-04-17 18:45:42 -04:00
parent a18c9f1c6d
commit e2f9f57410
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -421,6 +421,7 @@ button.action {
background: #7092ff;
}
button.action:focus,
button.action:hover {
background: #597BE7;
}
+1
View File
@@ -65,6 +65,7 @@ iD.ui.Commit = function(context) {
.attr('class','user-info')
.text(user.display_name)
.attr('href', connection.url() + '/user/' + user.display_name)
.attr('tabindex', -1)
.attr('target', '_blank');
saveSection.append('p')
+2 -1
View File
@@ -42,7 +42,8 @@ iD.ui.Success = function(connection) {
.on('click.save', function() {
event.cancel();
})
.append('span').attr('class','label').text('Okay');
.text('Okay')
.node().focus();
}
return d3.rebind(success, event, 'on');