@@ -2,7 +2,8 @@ import {listIndent, listOutdent} from "../../protyle/wysiwyg/list";
2
2
import {
3
3
hasClosestBlock ,
4
4
hasClosestByAttribute ,
5
- hasClosestByClassName , hasClosestByTag ,
5
+ hasClosestByClassName ,
6
+ hasClosestByTag ,
6
7
} from "../../protyle/util/hasClosest" ;
7
8
import { moveToDown , moveToUp } from "../../protyle/wysiwyg/move" ;
8
9
import { Constants } from "../../constants" ;
@@ -11,7 +12,7 @@ import {getCurrentEditor} from "../editor";
11
12
import { fontEvent , getFontNodeElements } from "../../protyle/toolbar/Font" ;
12
13
import { hideElements } from "../../protyle/ui/hideElements" ;
13
14
import { softEnter } from "../../protyle/wysiwyg/enter" ;
14
- import { isInAndroid } from "../../protyle/util/compatibility" ;
15
+ import { isInAndroid , isInHarmony } from "../../protyle/util/compatibility" ;
15
16
16
17
let renderKeyboardToolbarTimeout : number ;
17
18
let showUtil = false ;
@@ -519,7 +520,7 @@ export const initKeyboardToolbar = () => {
519
520
<button class="keyboard__action" data-type="done"><svg style="width: 36px"><use xlink:href="#iconKeyboardHide"></use></svg></button>
520
521
</div>
521
522
<div class="keyboard__util"></div>` ;
522
- toolbarElement . addEventListener ( isInAndroid ( ) ? "touchstart" : "click" , ( event ) => {
523
+ toolbarElement . addEventListener ( isInAndroid ( ) || isInHarmony ( ) ? "touchstart" : "click" , ( event ) => {
523
524
const protyle = getCurrentEditor ( ) ?. protyle ;
524
525
const target = event . target as HTMLElement ;
525
526
const slashBtnElement = hasClosestByClassName ( event . target as HTMLElement , "keyboard__slash-item" ) ;
0 commit comments