Skip to content

Commit

Permalink
Fix for non working Ctrl+Click and Ctrl+Shift+Click for opening same …
Browse files Browse the repository at this point in the history
…document on targeted panes
  • Loading branch information
swmitra committed Dec 24, 2015
1 parent ccb26f1 commit c7e80a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ define(function (require, exports, module) {
// TODO should be removed once bug is closed.
// if we are already displaying a file do nothing but resolve immediately.
// this fixes timing issues in test cases.
if (MainViewManager.getCurrentlyViewedPath(MainViewManager.ACTIVE_PANE) === fullPath) {
if (MainViewManager.getCurrentlyViewedPath(paneId || MainViewManager.ACTIVE_PANE) === fullPath) {
result.resolve(MainViewManager.getCurrentlyViewedFile(MainViewManager.ACTIVE_PANE));
return result.promise();
}
Expand Down
2 changes: 1 addition & 1 deletion src/project/FileTreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ define(function (require, exports, module) {
return;
}

if (this.props.entry.get("selected")) {
if (this.props.entry.get("selected") && !e.ctrlKey) {
if (this.state.clickTimer === null && !this.props.entry.get("rename")) {
var timer = window.setTimeout(this.startRename, CLICK_RENAME_MINIMUM);
this.setState({
Expand Down

0 comments on commit c7e80a5

Please sign in to comment.