Adding elements to chat on every frame proved unwise, also made spellchecker happy.
This commit is contained in:
8
ambient.d.ts
vendored
8
ambient.d.ts
vendored
@@ -349,7 +349,7 @@ interface Utils {
|
||||
complete_do_target(actions: {self: unknown, others: unknown}): Set<string>
|
||||
complete_do(this: Optional<ICommand, 'Tag'>): undefined
|
||||
replace_me(_match: string, _offset: number, whole: string): string
|
||||
pad_chat(chat: HTMLDivElement): undefined
|
||||
//pad_chat(chat: HTMLDivElement): undefined
|
||||
}
|
||||
|
||||
interface Complete {
|
||||
@@ -357,7 +357,7 @@ interface Complete {
|
||||
|
||||
/**
|
||||
* The suggestions panel.
|
||||
* Its structure is (outer div) -> (container div) -> (multiple suggestion divs)
|
||||
* Its structure is (outer div) -> (container div) -> (multiple suggestion div elements)
|
||||
*/
|
||||
e: HTMLDivElement
|
||||
|
||||
@@ -424,7 +424,7 @@ interface Complete {
|
||||
* We search up or down, using the index as a starting point for the next match, treating the set as a ring
|
||||
* If the found line is the same as the current line, we bell out
|
||||
* Upon finding a next match, we replace the input with its text and set the index appropriately
|
||||
* We exit the history mode using the inputchat keydown handler, on Tab, Escape or Enter
|
||||
* We exit the history mode using the InputChat keydown handler, on Tab, Escape or Enter
|
||||
* Escape restores the saved input, discarding the history line
|
||||
* Tab keeps the current text and unlocks the element, allowing it to be edited
|
||||
* Enter keeps the current text and sends it as the message as usual
|
||||
@@ -456,4 +456,4 @@ interface InputHistory {
|
||||
exit(textarea: HTMLTextAreaElement, restore_input: boolean): true
|
||||
}
|
||||
|
||||
// FIXME spread around readonlys where appropriate
|
||||
// FIXME spread around readonly where appropriate
|
||||
|
Reference in New Issue
Block a user