From b5981ab544baaf81b0c81cca1fe8a80c34993b2a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Apr 2020 22:44:32 +0900 Subject: feat(client): Implement AiScript scratchpad --- src/client/scripts/hotkey.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/scripts') diff --git a/src/client/scripts/hotkey.ts b/src/client/scripts/hotkey.ts index 7d1bb16e79..5f73aa58b9 100644 --- a/src/client/scripts/hotkey.ts +++ b/src/client/scripts/hotkey.ts @@ -80,6 +80,7 @@ export default { el._keyHandler = (e: KeyboardEvent) => { const targetReservedKeys = document.activeElement ? ((document.activeElement as any)._misskey_reservedKeys || []) : []; if (document.activeElement && ignoreElemens.some(el => document.activeElement.matches(el))) return; + if (document.activeElement && document.activeElement.attributes['contenteditable']) return; for (const action of actions) { const matched = match(e, action.patterns); -- cgit v1.2.3-freya