Skip to content

Commit

Permalink
fix apex shortcut but need to clarify uppercase shortcut and lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
dufoli committed May 21, 2024
1 parent 950084b commit 7535f3a
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ class App extends React.PureComponent {
"o": ["tab", "objectTab"],
"u": ["tab", "userTab"],
"s": ["tab", "shortcutTab"],
"r": ["tab", "orgTab"]
"r": ["tab", "orgTab"],
//shift shortkey
"A": ["click", "apexRunnerBtn"]
};

if (!actionMap[e.key]) {
return;
}
Expand All @@ -249,17 +252,6 @@ class App extends React.PureComponent {
refs.showAllDataBox.refs[target].click();
break;
}

if (e.key == "p") {
e.preventDefault();
this.refs.apexRunnerBtn.target = getLinkTarget(e);
this.refs.apexRunnerBtn.click();
}
if (e.key == "p") {
e.preventDefault();
this.refs.apexRunnerBtn.target = getLinkTarget(e);
this.refs.apexRunnerBtn.click();
}
}
onChangeApi(e) {
localStorage.setItem("apiVersion", e.target.value + ".0");
Expand Down Expand Up @@ -386,7 +378,7 @@ class App extends React.PureComponent {
h("a", {ref: "dataImportBtn", href: importHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Data ", h("u", {}, "I"), "mport"))
),
h("div", {className: "slds-m-bottom_xx-small"},
h("a", {ref: "apexRunnerBtn", href: apexRunnerHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Run A", h("u", {}, "p"), "ex"))
h("a", {ref: "apexRunnerBtn", href: apexRunnerHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Run ", h("u", {}, "A"), "pex"))
),
h("div", {},
h("a", {ref: "limitsBtn", href: limitsHref, target: linkTarget, className: "page-button slds-button slds-button_neutral"}, h("span", {}, "Org ", h("u", {}, "L"), "imits"))
Expand Down

0 comments on commit 7535f3a

Please sign in to comment.