summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_mypal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_mypal.cpp b/libopie2/opiecore/device/odevice_mypal.cpp
index 208be46..73b31cb 100644
--- a/libopie2/opiecore/device/odevice_mypal.cpp
+++ b/libopie2/opiecore/device/odevice_mypal.cpp
@@ -150,15 +150,15 @@ bool MyPal::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress,
150 // add the offset to the Key_Left key 150 // add the offset to the Key_Left key
151 if ( d->m_model == Model_MyPal_716 ) 151 if ( d->m_model == Model_MyPal_716 )
152 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4; 152 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
153 break; 153 break;
154 } 154 }
155 155
156 // map Power Button short/long press to F6 156 // map Power Button short/long press
157 case Key_F6: { 157 case HardKey_Suspend: { // Hope we don't have infinite recursion here:
158 if ( isPress ) { 158 if ( isPress ) {
159 if ( m_power_timer ) 159 if ( m_power_timer )
160 killTimer ( m_power_timer ); 160 killTimer ( m_power_timer );
161 m_power_timer = startTimer ( 500 ); 161 m_power_timer = startTimer ( 500 );
162 } 162 }
163 else if ( m_power_timer ) { 163 else if ( m_power_timer ) {
164 killTimer ( m_power_timer ); 164 killTimer ( m_power_timer );