event.stopPropagation()}
+ onMouseDown={(event) => event.stopPropagation()}
+ onTouchStart={(event) => event.stopPropagation()}
+ onTouchEnd={(event) => event.stopPropagation()}
+ style={{
+ position: "relative",
+ zIndex: zIndexMap.schematicSearch,
+ fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
+ }}
+ >
+ {!isOpen ? (
+
+
+
+ event.currentTarget.focus()}
+ onChange={(event) => onQueryChange(event.target.value)}
+ style={{
+ minWidth: 0,
+ flex: 1,
+ border: "none",
+ outline: "none",
+ fontSize: "13px",
+ color: "#222222",
+ background: "transparent",
+ }}
+ />
+ {query && results.length > 0 ? (
+
+ {resultCountLabel}
+
+ ) : (
+
+ {shortcutLabel}
+
+ )}
+ {isOpen && (
+
+ )}
+
+ {query && (
+
event.stopPropagation()}
+ onTouchMove={(event) => event.stopPropagation()}
+ >
+ {results.length === 0 ? (
+
+ No matching components or nets
+
+ ) : (
+ <>
+ {renderResultSection("components", componentResults)}
+ {renderResultSection("nets", netResults)}
+ >
+ )}
+
+ )}
+