Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KWin KWin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 157
    • Merge requests 157
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KWinKWin
  • Merge requests
  • !3365

Implement sticky keys on Wayland

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Nicolas Fella requested to merge work/nico/sticky-keys into master Dec 27, 2022
  • Overview 22
  • Commits 1
  • Pipelines 14
  • Changes 8

Sticky keys allow to trigger key combinations one key at a time.

This is an accessibility feature used by people that cannot press multiple keys simultaneously.

On X11 this is handled by the X server, configured via kaccess.

On Wayland we get to handle this ourselves.

wl_keyboard events already carry the modifier's latched/locked state, so all we need to do is to make sure the right state is set

Xkb gains a new method to set the state. The business logic is implemented in a new plugin that filters for keys and sets the Xkb state accordingly.

BUG: 444335

This is a barebones implementation. Some aspects are missing:

  • Locking modifiers
  • Disabling when two keys are held down
  • Notify when locked/latched
Edited Dec 27, 2022 by Nicolas Fella
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/nico/sticky-keys