This will be useful to be able to show a menu on long press and just
lock the screen on normal press, especially useful on phones and
tablets.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R108:b9423a033c8a: Send a Qt::Key_PowerDown when long pressing the power button
Could not test much because on laptops doesn't work. Would need more
investigation. discussed further on the plasma mailing list.
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Concept ++
Kwin has a concept of an InputEventFilter which will allow for doing this sort of things without putting specifics in the main core
See something like VirtualTerminalFilter
Comment Actions
This code is in the GlobalShortcutFilter already. Do you want to have a PowerButtonGlobalShortcutFilter and NonPowerButtonGlobalShortcutFilter?
Aleix
Comment Actions
Oh, I apologise.
Kwin seem too like really long files which is hard to read in phabricator.