diff options
author | bobzel <zzzman@gmail.com> | 2021-09-16 17:47:50 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-16 17:47:50 -0400 |
commit | 68b20c7cf3b3472a7c7adbdcffa2318ad3549d8d (patch) | |
tree | 3ac90a0a1ee262afc8e80336bd67a3188c759680 /src | |
parent | 0ad7c7d6abe68ed5c9520c9b671f07013b8d86df (diff) |
webbox search coming soon
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index cce71329d..0c9c36418 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -623,6 +623,25 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps onPointerDown={this.sidebarBtnDown} > <FontAwesomeIcon style={{ color: Colors.WHITE }} icon={"comment-alt"} size="sm" /> </div> + {/* <div className="webBox-search" key="search" title="Search" + style={{ + top: 10, + left: 10, + width: 200, + height: 50, + display: "block", + position: "absolute" + }} + > + <input onKeyPress={e => { + if (e.key === "Enter") { + (this._iframe?.contentWindow as any)?.find(e.target.value); + } + }} onChange={e => { + this._iframe?.contentWindow?.getSelection()?.empty(); + (this._iframe?.contentWindow as any)?.find(e.target.value) + }}></input> + </div> */} </div>); } } |