mirror of
https://github.com/zen-browser/desktop.git
synced 2026-09-14 11:05:57 +05:00
fix: ctrl -> alt
This commit is contained in:
parent
219ed39fca
commit
fee23ea0bd
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -21,7 +21,7 @@ XPCOMUtils.defineLazyPreferenceGetter(
|
||||
lazy,
|
||||
"activationMethod",
|
||||
"zen.glance.activation-method",
|
||||
"ctrl"
|
||||
"alt"
|
||||
);
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user