fix: Disable CTRL+A to select all widgets on Api Pane.

This commit is contained in:
Arsalan 2022-04-04 13:48:05 +05:30
parent f201ec7bcd
commit b0869f4d93

View File

@ -40,7 +40,6 @@ import { Variant } from "components/ads/common";
import { getAppMode } from "selectors/applicationSelectors";
import { APP_MODE } from "entities/App";
import { commentModeSelector } from "selectors/commentsSelectors";
import {
createMessage,
SAVE_HOTKEY_TOASTER_MESSAGE,
@ -51,6 +50,8 @@ import { getExplorerPinned } from "selectors/explorerSelector";
import { setExplorerPinnedAction } from "actions/explorerActions";
import { setIsGitSyncModalOpen } from "actions/gitSyncActions";
import { GitSyncModalTab } from "entities/GitSync";
import { matchBuilderPath } from "constants/routes";
import { commentModeSelector } from "selectors/commentsSelectors";
type Props = {
copySelectedWidget: () => void;
@ -257,8 +258,10 @@ class GlobalHotKeys extends React.Component<Props> {
group="Canvas"
label="Select all Widget"
onKeyDown={(e: any) => {
this.props.selectAllWidgetsInit();
e.preventDefault();
if (matchBuilderPath(window.location.pathname)) {
this.props.selectAllWidgetsInit();
e.preventDefault();
}
}}
/>
<Hotkey