mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: allow clear shortcut
This commit is contained in:
parent
32c0b5f03c
commit
62170293e9
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ export default class SettingsBar extends React.PureComponent<Props, State> {
|
|||
|
||||
onShortCutInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
e.preventDefault()
|
||||
const shortcut = keyHelper.parseEvent(e)
|
||||
// Clear shortcut with backspace
|
||||
const shortcut = e.key === 'Backspace' ? '' : keyHelper.parseEvent(e)
|
||||
this.setState({ toggleShowSideBarShortcut: shortcut })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue