@gingkoo/pandora-explorer 0.0.1-alpha.54 → 0.0.1-alpha.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es/index.js +7 -5
- package/lib/es/index.js.map +1 -1
- package/lib/es/types.d.ts +2 -2
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-explorer v0.0.1-alpha.
|
|
2
|
+
* @gingkoo/pandora-explorer v0.0.1-alpha.55
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -7712,17 +7712,19 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7712
7712
|
if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
|
|
7713
7713
|
if (curSelect && dataMap?.[curSelect]) {
|
|
7714
7714
|
onCopy?.(dataMap?.[curSelect]);
|
|
7715
|
+
} else {
|
|
7716
|
+
onCopy?.(null);
|
|
7715
7717
|
}
|
|
7716
7718
|
}
|
|
7717
7719
|
if ((e.ctrlKey || e.metaKey) && e.key === 'x') {
|
|
7718
7720
|
if (curSelect && dataMap?.[curSelect]) {
|
|
7719
|
-
|
|
7721
|
+
onShear?.(dataMap?.[curSelect]);
|
|
7722
|
+
} else {
|
|
7723
|
+
onShear?.(null);
|
|
7720
7724
|
}
|
|
7721
7725
|
}
|
|
7722
7726
|
if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
|
|
7723
|
-
|
|
7724
|
-
onCopy?.(dataMap?.[curSelect]);
|
|
7725
|
-
}
|
|
7727
|
+
curInfo && onPaste?.(curInfo);
|
|
7726
7728
|
}
|
|
7727
7729
|
};
|
|
7728
7730
|
const closeMenu = () => {
|