Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2617 from adobe/glenn/issue-2616
Browse files Browse the repository at this point in the history
Don't execute commands from the shell when a modal dialog is open.
  • Loading branch information
redmunds committed Jan 19, 2013
2 parents f30149b + e4fe278 commit d11b7d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/ShellAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ define(function (require, exports, module) {
* calling Brackets commands from the native shell.
*/
function executeCommand(eventName) {
// Temporary fix for #2616 - don't execute the command if a modal dialog is open.
// This should really be fixed with proper menu enabling.
if ($(".modal.instance").length) {
return false;
}
var promise = CommandManager.execute(eventName);
return (promise && promise.state() === "rejected") ? false : true;
}
Expand Down

0 comments on commit d11b7d8

Please sign in to comment.