Skip to content
Permalink
Browse files

Add support for org.mate.accessibility-keyboard.stickykeys-latch-to-lock

  • Loading branch information...
cwendling authored and lukefromdc committed Sep 26, 2018
1 parent 3c9e5dd commit b761b23f64644122db4a3a57a831e7183e17b340
Showing with 6 additions and 1 deletion.
  1. +6 −1 plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
@@ -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);
@@ -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);

0 comments on commit b761b23

Please sign in to comment.
You can’t perform that action at this time.