aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-16 17:47:50 -0400
committerbobzel <zzzman@gmail.com>2021-09-16 17:47:50 -0400
commit68b20c7cf3b3472a7c7adbdcffa2318ad3549d8d (patch)
tree3ac90a0a1ee262afc8e80336bd67a3188c759680 /src
parent0ad7c7d6abe68ed5c9520c9b671f07013b8d86df (diff)
webbox search coming soon
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/WebBox.tsx19
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>);
}
}