on xenial help sign in
Move signal to PhysicalKeysMapper
commit376f612beb4f90edc16458cda83534e4083e8360 authorJosh Arenson <joshua.arenson@canonical.com> dateThu 18 Dec 2014, 15:43 (12 years ago) parent13eb553
1 file changed+2−5
qml/Shell.qml+2−5
qml/Shell.qml+2−5
@@ -162,9 +162,11 @@ Item {
162162 PhysicalKeysMapper {
163163 id: physicalKeysMapper
164164
165+ onPowerKeyLongPress: dialogs.showPowerDialog()
165166 onVolumeDownPressed: volumeControl.volumeDown()
166167 onVolumeUpPressed: volumeControl.volumeUp()
167168 onScreenshotPressed: screenGrabber.capture()
169+
168170 }
169171
170172 ScreenGrabber {
@@ -834,11 +836,6 @@ Item {
834836 shutdownFadeOutRectangle.visible = true;
835837 shutdownFadeOut.start();
836838 }
837−
838− Connections {
839− target: physicalKeysMapper
840− onPowerKeyLongPress: dialogs.showPowerDialog();
841− }
842839 }
843840
844841 EdgeDemo {