Skip to content

Commit

Permalink
Passwords.app uses keyboard-us (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Jan 21, 2025
1 parent ff0253d commit 815e06c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions macosfrontend/macosfrontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
#define TERMINAL_USE_EN \
R"JSON({"appPath": "/System/Applications/Utilities/Terminal.app", "appId": "com.apple.Terminal", "imName": "keyboard-us"})JSON"

// User deletes ABC to enable Fcitx5 on password input.
#define PASSWORDS_USE_EN \
R"JSON({"appPath": "/System/Applications/Passwords.app", "appId": "com.apple.Passwords", "imName": "keyboard-us"})JSON"

namespace fcitx {

class MacosInputContext;
Expand All @@ -38,8 +42,10 @@ struct AppIMAnnotation {
FCITX_CONFIGURATION(
MacosFrontendConfig,
OptionWithAnnotation<std::vector<std::string>, AppIMAnnotation>
appDefaultIM{
this, "AppDefaultIM", _("App default IM"), {TERMINAL_USE_EN}};
appDefaultIM{this,
"AppDefaultIM",
_("App default IM"),
{TERMINAL_USE_EN, PASSWORDS_USE_EN}};
Option<bool> simulateKeyRelease{this, "SimulateKeyRelease",
_("Simulate key release")};
Option<int, IntConstrain> simulateKeyReleaseDelay{
Expand Down

0 comments on commit 815e06c

Please sign in to comment.