On escape, hide WYSIWYG toolbar
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b588865137
commit
0d329ac18a
@ -1,6 +1,5 @@
|
||||
<div class="container"
|
||||
(focusin)="onFocusIn($event)"
|
||||
(focusout)="onFocusIn($event)">
|
||||
(focusin)="onFocusIn($event)">
|
||||
<div class="toolbar-base" *ngIf="isFocused">
|
||||
<button class="toolbar-button" title="Bold" (click)="documentCommand('bold')">
|
||||
<i class="icon fa fa-bold"></i>
|
||||
|
@ -53,7 +53,8 @@ export class NormComponent extends EditorNodeContract implements OnInit {
|
||||
this.isFocused = true;
|
||||
}
|
||||
|
||||
onFocusOut(event: MouseEvent) {
|
||||
@HostListener('document:keyup.escape', ['$event'])
|
||||
onFocusOut(event) {
|
||||
this.isFocused = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user