: should trigger command mode as well

This commit is contained in:
Piotr Domański 2026-04-02 13:05:34 +02:00
parent 1ff33bedaa
commit d0430adbc2

View file

@ -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;
}