fix: ctrl -> alt

This commit is contained in:
octaviusz 2026-09-11 01:18:01 +03:00
parent 219ed39fca
commit fee23ea0bd
No known key found for this signature in database
GPG Key ID: 7A6227D705F9D1CC
4 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
value: true
- name: zen.glance.activation-method
value: "ctrl" # ctrl, alt, shift
value: "alt" # ctrl, alt, shift
- name: zen.glance.long-press-duration
value: 300 # in milliseconds

View File

@ -739,7 +739,7 @@ var gZenWorkspacesSettings = {
let updateGlancePreferencesVisibility = {
observe() {
const glanceEnabled = Services.prefs.getBoolPref("zen.glance.enabled", true);
const activationMethod = Services.prefs.getStringPref("zen.glance.activation-method", "ctrl");
const activationMethod = Services.prefs.getStringPref("zen.glance.activation-method", "alt");
const triggerWrapper = document.getElementById("zenGlanceTriggerWrapper");
if (triggerWrapper) {
@ -1206,7 +1206,7 @@ Preferences.addAll([
{
id: "zen.glance.activation-method",
type: "string",
default: "ctrl",
default: "alt",
},
{
id: "zen.glance.long-press-duration",

View File

@ -1719,7 +1719,7 @@ class nsZenGlanceManager extends nsZenDOMOperatedFeature {
openGlanceForBookmark(event) {
const activationMethod = Services.prefs.getStringPref(
"zen.glance.activation-method",
"ctrl"
"alt"
);
if (!this.#isActivationKeyPressed(event, activationMethod)) {

View File

@ -21,7 +21,7 @@ XPCOMUtils.defineLazyPreferenceGetter(
lazy,
"activationMethod",
"zen.glance.activation-method",
"ctrl"
"alt"
);
XPCOMUtils.defineLazyPreferenceGetter(