mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-21 13:41:40 +00:00
Adjust notification HotKeyTab
This commit is contained in:
@@ -69,6 +69,14 @@ class HotkeyTab extends React.Component {
|
||||
})
|
||||
}
|
||||
|
||||
clearMessage() {
|
||||
setTimeout(() => {
|
||||
this.setState({
|
||||
keymapAlert: null
|
||||
})
|
||||
}, 3000)
|
||||
}
|
||||
|
||||
render () {
|
||||
let keymapAlert = this.state.keymapAlert
|
||||
let keymapAlertElement = keymapAlert != null
|
||||
@@ -76,6 +84,7 @@ class HotkeyTab extends React.Component {
|
||||
{keymapAlert.message}
|
||||
</p>
|
||||
: null
|
||||
this.clearMessage()
|
||||
let { config } = this.state
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user