Rename altClickForMouseEvents to mouseEventsRequireAlt

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-05-27 21:41:44 +00:00
co-authored by Daniel Imms
parent 5ad56446b8
commit f8cef535c7
8 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ export class MouseService implements IMouseService {
}
if (but !== CoreMouseButton.WHEEL
&& this._optionsService.rawOptions.altClickForMouseEvents
&& this._optionsService.rawOptions.mouseEventsRequireAlt
&& this._mouseStateService.areMouseEventsActive
&& !ev.altKey) {
return false;
@@ -368,7 +368,7 @@ export class MouseService implements IMouseService {
if (this._optionsService.rawOptions.logLevel === 'debug') {
this._logService.debug('Binding to mouse events:', this._explainEvents(events));
}
if (this._optionsService.rawOptions.altClickForMouseEvents) {
if (this._optionsService.rawOptions.mouseEventsRequireAlt) {
this._selectionService.enable();
} else {
element.classList.add('enable-mouse-events');