mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +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
|
||||
})
|
||||
|
||||
// When the key is translation confirmation (Enter)
|
||||
if (this.state.isIME && e.keyCode === 13) {
|
||||
// When the key is translation confirmation (Enter, Space)
|
||||
if (this.state.isIME && (e.keyCode === 32 || e.keyCode === 13)) {
|
||||
this.setState({
|
||||
isConfirmTranslation: true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user