: should trigger command mode as well
This commit is contained in:
parent
1ff33bedaa
commit
d0430adbc2
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@
|
|||
const tag = (e.target as HTMLElement).tagName;
|
||||
const editable = (e.target as HTMLElement).isContentEditable;
|
||||
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || editable) return;
|
||||
if (e.key === '/') {
|
||||
if (e.key === '/' || e.key === ':') {
|
||||
e.preventDefault();
|
||||
commandOpen = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue