Skip to content

Commit 815e06c

Browse files
authored
Passwords.app uses keyboard-us (#221)
1 parent ff0253d commit 815e06c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

macosfrontend/macosfrontend.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#define TERMINAL_USE_EN \
2424
R"JSON({"appPath": "/System/Applications/Utilities/Terminal.app", "appId": "com.apple.Terminal", "imName": "keyboard-us"})JSON"
2525

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

2832
class MacosInputContext;
@@ -38,8 +42,10 @@ struct AppIMAnnotation {
3842
FCITX_CONFIGURATION(
3943
MacosFrontendConfig,
4044
OptionWithAnnotation<std::vector<std::string>, AppIMAnnotation>
41-
appDefaultIM{
42-
this, "AppDefaultIM", _("App default IM"), {TERMINAL_USE_EN}};
45+
appDefaultIM{this,
46+
"AppDefaultIM",
47+
_("App default IM"),
48+
{TERMINAL_USE_EN, PASSWORDS_USE_EN}};
4349
Option<bool> simulateKeyRelease{this, "SimulateKeyRelease",
4450
_("Simulate key release")};
4551
Option<int, IntConstrain> simulateKeyReleaseDelay{

0 commit comments

Comments
 (0)