1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-21 13:41:40 +00:00

Adjust notification HotKeyTab

This commit is contained in:
Paul Rosset
2017-10-24 22:27:03 +01:00
parent 4078645958
commit 80283b5f55
2 changed files with 20 additions and 4 deletions

View File

@@ -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 (