feat(client): Implement AiScript scratchpad

This commit is contained in:
syuilo
2020-04-11 22:44:32 +09:00
parent df69ca4d56
commit b5981ab544
6 changed files with 167 additions and 2 deletions

View File

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