From b2126e385facb169a2840be69bff59e0ebc030ce Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sat, 30 Jan 2021 18:34:37 +0200 Subject: [PATCH] Fix showing markup tooltip with Ctrl+K --- src/components/chat/markupTooltip.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/chat/markupTooltip.ts b/src/components/chat/markupTooltip.ts index 9f98ac1b..2c9d5493 100644 --- a/src/components/chat/markupTooltip.ts +++ b/src/components/chat/markupTooltip.ts @@ -129,6 +129,10 @@ export default class MarkupTooltip { } public showLinkEditor() { + if(!this.container || !this.container.classList.contains('is-visible')) { // * if not inited yet (Ctrl+A + Ctrl+K) + this.show(); + } + const button = this.buttons.link; this.container.classList.add('is-link');