PLT-1170: Support enter key in DeletePostModal

This commit is contained in:
Florian Orben
2015-11-28 16:20:28 +01:00
parent 42a001c4e2
commit eecba7880f
2 changed files with 2 additions and 1 deletions
@@ -152,6 +152,7 @@ export default class DeletePostModal extends React.Component {
type='button'
className='btn btn-danger'
onClick={this.handleDelete}
autoFocus='autofocus'
>
{'Delete'}
</button>
+1 -1
View File
@@ -116,7 +116,7 @@ a:focus, a:hover {
.btn {
&.btn-danger {
color: #fff;
&:hover, &:active {
&:hover, &:active, &:focus {
color: #fff;
}
}