Skip to content

Commit

Permalink
Add support for org.mate.accessibility-keyboard.stickykeys-latch-to-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendling authored and lukefromdc committed Sep 30, 2018
1 parent 3c9e5dd commit b761b23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ set_server_from_settings (MsdA11yKeyboardManager *manager)
manager->priv->settings,
"stickykeys-enable",
XkbStickyKeysMask)) {
desc->ctrls->ax_options |= XkbAX_LatchToLockMask;
desc->ctrls->ax_options = set_clear (g_settings_get_boolean (manager->priv->settings, "stickykeys-latch-to-lock"),
desc->ctrls->ax_options,
XkbAccessXFeedbackMask | XkbAX_LatchToLockMask);
desc->ctrls->ax_options = set_clear (g_settings_get_boolean (manager->priv->settings, "stickykeys-two-key-off"),
desc->ctrls->ax_options,
XkbAccessXFeedbackMask | XkbAX_TwoKeysMask);
Expand Down Expand Up @@ -910,6 +912,9 @@ set_settings_from_server (MsdA11yKeyboardManager *manager)
stickykeys_changed = set_bool (settings,
"stickykeys-enable",
desc->ctrls->enabled_ctrls & XkbStickyKeysMask);
changed |= set_bool (settings,
"stickykeys-latch-to-lock",
desc->ctrls->ax_options & XkbAX_LatchToLockMask);
changed |= set_bool (settings,
"stickykeys-two-key-off",
desc->ctrls->ax_options & XkbAX_TwoKeysMask);
Expand Down

0 comments on commit b761b23

Please sign in to comment.