From 7b5a0a85e213ed9c70a4c5e3991c87e0166df78f Mon Sep 17 00:00:00 2001 From: Vicken Simonian Date: Mon, 27 Apr 2026 17:37:16 -0700 Subject: [PATCH] feat: add keyboard press-and-hold setting --- examples/macform.yaml | 5 +++++ internal/registry/keyboard.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/examples/macform.yaml b/examples/macform.yaml index 2ef51d4..cc27ec3 100644 --- a/examples/macform.yaml +++ b/examples/macform.yaml @@ -187,6 +187,11 @@ keyboard: # Default: true auto-correct: true + # Description: Enable press-and-hold for keys to show accented character options + # Type: bool + # Default: true + press-and-hold: true + hot-corners: # Description: Action triggered when the cursor reaches the top-left corner of the screen # Type: string diff --git a/internal/registry/keyboard.go b/internal/registry/keyboard.go index 15b5807..108eaf9 100644 --- a/internal/registry/keyboard.go +++ b/internal/registry/keyboard.go @@ -39,4 +39,9 @@ var keyboardSettings = []SettingDef{ Type: "bool", Provider: provider.NewDefaults("NSGlobalDomain", "NSAutomaticSpellingCorrectionEnabled", "bool"), }, + { + SpecKey: "press-and-hold", + Type: "bool", + Provider: provider.NewDefaults("NSGlobalDomain", "ApplePressAndHoldEnabled", "bool"), + }, }