[Containment Interface] Trigger context menus on pressing "Menu" key
ClosedPublic

Authored by broulik on Mar 3 2017, 4:00 PM.

Details

Summary

When pressing the "Menu" key, pretend a right-click happened and show the containment context menu.

Test Plan

FolderView eats the key event so far but on Desktop works.

It works for both the regular context menu as well as if you have set it to show application launcher.

It doesn't trigger the applet's context menu, however, but the only applets that can get focus are stuff like folder view and notes. Applets could still intercept it (in fact, FolderView has commented code that is supposed to do this, will have a look at this) and do their own thing. Only if the event isn't accepted it will propagate all the way to the containment and trigger the menu.

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Mar 3 2017, 4:00 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptMar 3 2017, 4:00 PM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
mart accepted this revision.Mar 6 2017, 2:12 PM
This revision is now accepted and ready to land.Mar 6 2017, 2:12 PM
This revision was automatically updated to reflect the committed changes.