mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
Fix #68116. Adopt in search, problems and debug land
This commit is contained in:
@@ -707,6 +707,7 @@ export class TreeResourceNavigator2<T, TFilterData> extends Disposable {
|
||||
return;
|
||||
}
|
||||
|
||||
const isMiddleClick = e.browserEvent instanceof MouseEvent ? e.browserEvent.button === 1 : false;
|
||||
const isDoubleClick = e.browserEvent.detail === 2;
|
||||
const preserveFocus = (e.browserEvent instanceof KeyboardEvent && typeof (<SelectionKeyboardEvent>e.browserEvent).preserveFocus === 'boolean') ?
|
||||
!!(<SelectionKeyboardEvent>e.browserEvent).preserveFocus :
|
||||
@@ -714,7 +715,7 @@ export class TreeResourceNavigator2<T, TFilterData> extends Disposable {
|
||||
|
||||
if (this.tree.openOnSingleClick || isDoubleClick) {
|
||||
const sideBySide = e.browserEvent instanceof MouseEvent && (e.browserEvent.ctrlKey || e.browserEvent.metaKey || e.browserEvent.altKey);
|
||||
this.open(preserveFocus, isDoubleClick, sideBySide);
|
||||
this.open(preserveFocus, isDoubleClick || isMiddleClick, sideBySide);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user