Skip to content

Commit c3c8cf8

Browse files
committed
add a keys setter
1 parent 38af472 commit c3c8cf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/text-expander-element.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ export default class TextExpanderElement extends HTMLElement {
276276
return keys.map(key => ({key, multiWord: globalMultiWord || multiWord.includes(key)}))
277277
}
278278

279+
set keys(value: string) {
280+
this.setAttribute('keys', value)
281+
}
282+
279283
connectedCallback(): void {
280284
const input = this.querySelector('input[type="text"], textarea')
281285
if (!(input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement)) return

0 commit comments

Comments
 (0)