wasm: hide canvas text caret
Another side effect of setting contenteditable on the canvas. Seen on Firefox. Change-Id: I789ba4d7e6fbbdbf14b66fe1ae57183ec04e04bb Reviewed-by: Lorn Potter <lorn.potter@gmail.com>bb10
parent
f80b7995f3
commit
7bae1bd5cb
|
|
@ -164,6 +164,7 @@ function QtLoader(config)
|
|||
// Set contentEditable in order to enable clipboard events; hide the resulting focus frame.
|
||||
canvas.contentEditable = true;
|
||||
canvas.style.outline = "0px solid transparent";
|
||||
canvas.style.caretColor = "transparent";
|
||||
canvas.style.cursor = "default";
|
||||
|
||||
return canvas;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
/* The contenteditable property is set to true for the canvas in order to support
|
||||
clipboard events. Hide the resulting focus frame and set the cursor back to
|
||||
the default cursor. */
|
||||
canvas { outline: 0px solid transparent; cursor:default }
|
||||
canvas { outline: 0px solid transparent; caret-color: transparent; cursor:default }
|
||||
</style>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
|
|
|
|||
Loading…
Reference in New Issue