-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,6 +233,9 @@ export const updatePayload_ = function (shortKey: keyof SettingsNS.FrontendCompl | |
&& Build.OS & kBOS.MAC && (Build.OS === kBOS.MAC as number || !os_) ? kKeyLayout.ignoreCaps : 0) | ||
break | ||
case "d": value = value ? " D" : ""; break | ||
case "p": case "y": | ||
value = value.replace(":default", shortKey === "p" ? defaults_.passEsc : defaults_.ignoreReadonly) | ||
break | ||
default: if (0) { shortKey satisfies never } break // lgtm [js/unreachable-statement] | ||
} | ||
return obj ? (obj as Generalized<SettingsNS.FrontendSettingCache>)[shortKey] = value : value | ||
|
@@ -357,6 +360,7 @@ [email protected]` | |
filterLinkHints: false, | ||
grabBackFocus: false, | ||
hideHud: false, | ||
ignoreReadonly: "#read-only-cursor-text-area", // GitHub file content | ||
keyLayout: kKeyLayout.Default, | ||
keyboard: [560, 33], | ||
keyupTime: 120, | ||
|
@@ -505,7 +509,7 @@ export const frontUpdateAllowed_: ReadonlyArray<keyof SettingsNS.FrontUpdateAllo | |
|
||
export const valuesToLoad_ = { | ||
__proto__: null as never, | ||
filterLinkHints: "f", keyLayout: "l", keyboard: "k", keyupTime: "u", | ||
filterLinkHints: "f", ignoreReadonly: "y", keyLayout: "l", keyboard: "k", keyupTime: "u", | ||
linkHintCharacters: "c", linkHintNumbers: "n", mouseReachable: "e", passEsc: "p", | ||
regexFindMode: "r", smoothScroll: "s", scrollStepSize: "t", waitForEnter: "w" | ||
} satisfies SettingsNS.AutoSyncedNameMap & SafeObject as SettingsNS.AutoSyncedNameMap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters