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
- Branch
- power
- Lint
Lint Errors Excuse: potato Severity Location Code Message Error input.h:310 Cppcheck unknownMacro - Unit
No Unit Test Coverage - Build Status
Buildable 21631 Build 21649: arc lint + arc unit
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.