Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/vs/platform/actions/browser/menuEntryActionViewItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { UILabelProvider } from '../../../base/common/keybindingLabels.js';
import { ResolvedKeybinding } from '../../../base/common/keybindings.js';
import { KeyCode } from '../../../base/common/keyCodes.js';
import { combinedDisposable, DisposableStore, MutableDisposable, toDisposable } from '../../../base/common/lifecycle.js';
import { isLinux, isWindows, OS } from '../../../base/common/platform.js';
import { isLinux, isWindows, OS, isWeb } from '../../../base/common/platform.js';
import { ThemeIcon } from '../../../base/common/themables.js';
import { assertType } from '../../../base/common/types.js';
import { localize } from '../../../nls.js';
Expand Down Expand Up @@ -236,7 +236,9 @@ export class MenuEntryActionViewItem<T extends IMenuEntryActionViewItemOptions =
const wantsAltCommand = !!this._menuItemAction.alt?.enabled &&
(!this._accessibilityService.isMotionReduced() || isMouseOver) && (
this._altKey.keyStatus.altKey ||
(this._altKey.keyStatus.shiftKey && isMouseOver)
// Web: Shift key events are intercepted by the browser and can trigger unwanted Alt-like behavior.
// Only use Shift as Alt trigger on desktop where the event model handles it correctly.
Comment on lines +239 to +240
(this._altKey.keyStatus.shiftKey && isMouseOver && !isWeb)
Comment on lines +239 to +241
);

if (wantsAltCommand !== this._wantsAltCommand) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ export function checkGlobFileExists(
const query = queryBuilder.file(folders.map(folder => toWorkspaceFolder(URI.revive(folder))), {
_reason: 'checkExists',
includePattern: includes,
exists: true
exists: true,
disregardExcludeSettings: true,
disregardIgnoreFiles: true,
Comment on lines +126 to +127
});

return searchService.fileSearch(query, token).then(
Expand Down