lyrics-transcriber 0.49.0__py3-none-any.whl → 0.49.2__py3-none-any.whl

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.
@@ -36001,13 +36001,15 @@ function ReviewChangesModal({
36001
36001
  reactExports.useEffect(() => {
36002
36002
  if (open) {
36003
36003
  setModalSpacebarHandler(() => (e) => {
36004
- e.preventDefault();
36005
- e.stopPropagation();
36006
- if (videoRef.current) {
36007
- if (videoRef.current.paused) {
36008
- videoRef.current.play();
36009
- } else {
36010
- videoRef.current.pause();
36004
+ if (e.type === "keydown") {
36005
+ e.preventDefault();
36006
+ e.stopPropagation();
36007
+ if (videoRef.current) {
36008
+ if (videoRef.current.paused) {
36009
+ videoRef.current.play();
36010
+ } else {
36011
+ videoRef.current.pause();
36012
+ }
36011
36013
  }
36012
36014
  }
36013
36015
  });
@@ -36722,7 +36724,7 @@ function Header({
36722
36724
  }
36723
36725
  ),
36724
36726
  !isReadOnly && /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: { display: "flex", height: "32px" }, children: [
36725
- /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Undo (Cmd/Ctrl+Z)", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36727
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Undo", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36726
36728
  IconButton,
36727
36729
  {
36728
36730
  size: "small",
@@ -36738,7 +36740,7 @@ function Header({
36738
36740
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(UndoIcon, { fontSize: "small" })
36739
36741
  }
36740
36742
  ) }) }),
36741
- /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Redo (Cmd/Ctrl+Shift+Z)", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36743
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: "Redo", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36742
36744
  IconButton,
36743
36745
  {
36744
36746
  size: "small",
@@ -37816,42 +37818,6 @@ function LyricsAnalyzer({ data: initialData, onFileLoad, apiClient, isReadOnly,
37816
37818
  uncorrected: () => handleFlash("uncorrected")
37817
37819
  }), [handleFlash]);
37818
37820
  const isAnyModalOpenMemo = reactExports.useMemo(() => isAnyModalOpen, [isAnyModalOpen]);
37819
- reactExports.useEffect(() => {
37820
- const { handleKeyDown: baseHandleKeyDown, handleKeyUp, cleanup } = setupKeyboardHandlers({
37821
- setIsShiftPressed,
37822
- setIsCtrlPressed
37823
- });
37824
- const handleKeyDown = (e) => {
37825
- const targetElement = e.target;
37826
- const isInputFocused = targetElement.tagName === "INPUT" || targetElement.tagName === "TEXTAREA";
37827
- if (!isAnyModalOpen && !isInputFocused) {
37828
- const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
37829
- const modifierKey = isMac ? e.metaKey : e.ctrlKey;
37830
- if (modifierKey && e.key.toLowerCase() === "z") {
37831
- e.preventDefault();
37832
- if (e.shiftKey) {
37833
- if (canRedo) handleRedo();
37834
- } else {
37835
- if (canUndo) handleUndo();
37836
- }
37837
- return;
37838
- }
37839
- }
37840
- baseHandleKeyDown(e);
37841
- };
37842
- window.addEventListener("keydown", handleKeyDown);
37843
- window.addEventListener("keyup", handleKeyUp);
37844
- if (isAnyModalOpen) {
37845
- setIsShiftPressed(false);
37846
- setIsCtrlPressed(false);
37847
- }
37848
- return () => {
37849
- window.removeEventListener("keydown", handleKeyDown);
37850
- window.removeEventListener("keyup", handleKeyUp);
37851
- document.body.style.userSelect = "";
37852
- cleanup();
37853
- };
37854
- }, [setIsShiftPressed, setIsCtrlPressed, isAnyModalOpen, handleUndo, handleRedo, canUndo, canRedo]);
37855
37821
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: {
37856
37822
  p: 1,
37857
37823
  pb: 3,
@@ -38382,4 +38348,4 @@ ReactDOM$1.createRoot(document.getElementById("root")).render(
38382
38348
  /* @__PURE__ */ jsxRuntimeExports.jsx(App, {})
38383
38349
  ] })
38384
38350
  );
38385
- //# sourceMappingURL=index-BpvPgWoc.js.map
38351
+ //# sourceMappingURL=index-DSQidWB1.js.map