Add a keyboard tab to the debug console
ClosedPublic

Authored by graesslin on Nov 16 2016, 10:23 AM.

Details

Summary

A little bit debug information about the current keyboard state is
useful. Thus a new tab is added to show information about xkbcommon.

It shows:

  • layouts in the keymap
  • currently active layout
  • supported modifiers in key map
  • currently active modifiers in state
  • supported leds in key map
  • currently active leds in state

Whenever a key is pressed/released the complete ui is updated to reflect
the latest state. That is pressing/releasing a modifier is directly
reflected in the ui.

This UI can extended as needed for further debug information about the
keymap state.

Diff Detail

Repository
R108 KWin
Branch
debug-console-keyboard-tab
Lint
No Linters Available
Unit
No Unit Test Coverage
graesslin updated this revision to Diff 8207.Nov 16 2016, 10:23 AM
graesslin retitled this revision from to Add a keyboard tab to the debug console.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptNov 16 2016, 10:23 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Nov 16 2016, 4:23 PM
sebas added a reviewer: sebas.
sebas added a subscriber: sebas.

Ordering looks a bit random, perhaps group the input-related tabs?

This revision is now accepted and ready to land.Nov 16 2016, 4:23 PM
In D3379#63250, @sebas wrote:

Ordering looks a bit random, perhaps group the input-related tabs?

yes sure it's random by me adding new tabs always at the end ;-) Not sure whether we really need to reorder as it's just a debug tool...

This revision was automatically updated to reflect the committed changes.