mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Add to handle space key on search
This commit is contained in:
@@ -64,8 +64,8 @@ class TopBar extends React.Component {
|
|||||||
isConfirmTranslation: false
|
isConfirmTranslation: false
|
||||||
})
|
})
|
||||||
|
|
||||||
// When the key is translation confirmation (Enter)
|
// When the key is translation confirmation (Enter, Space)
|
||||||
if (this.state.isIME && e.keyCode === 13) {
|
if (this.state.isIME && (e.keyCode === 32 || e.keyCode === 13)) {
|
||||||
this.setState({
|
this.setState({
|
||||||
isConfirmTranslation: true
|
isConfirmTranslation: true
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user