cleanup and docs

This commit is contained in:
LenAnderson
2024-04-06 18:37:11 -04:00
parent 9fc1f9feab
commit 22a67d1573
3 changed files with 13 additions and 217 deletions

View File

@ -1,5 +1,5 @@
import { callPopup } from '../../../../script.js';
import { setNewSlashCommandAutoComplete } from '../../../slash-commands.js';
import { setSlashCommandAutoComplete } from '../../../slash-commands.js';
import { getSortableDelay } from '../../../utils.js';
import { log, warn } from '../index.js';
import { QuickReplyContextLink } from './QuickReplyContextLink.js';
@ -229,7 +229,7 @@ export class QuickReply {
message.addEventListener('input', () => {
this.updateMessage(message.value);
});
setNewSlashCommandAutoComplete(message, true);
setSlashCommandAutoComplete(message, true);
//TODO move tab support for textarea into its own helper(?) and use for both this and .editor_maximize
message.addEventListener('keydown', (evt) => {
if (evt.key == 'Tab' && !evt.shiftKey && !evt.ctrlKey && !evt.altKey) {