summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_ipaq.cpp
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp
index 5272a3c..a221e23 100644
--- a/libopie2/opiecore/device/odevice_ipaq.cpp
+++ b/libopie2/opiecore/device/odevice_ipaq.cpp
@@ -306,12 +306,16 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b
306 ( d->m_model == Model_iPAQ_H191x ) || 306 ( d->m_model == Model_iPAQ_H191x ) ||
307 ( d->m_model == Model_iPAQ_H1940 )) 307 ( d->m_model == Model_iPAQ_H1940 ))
308 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4; 308 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
309 break; 309 break;
310 } 310 }
311 311
312 // map Power Button short/long press to F6 for h191x
313 case Key_F6:
314 if ( d->m_model != Model_iPAQ_H191x )
315 break;
312 // map Power Button short/long press to F34/F35 316 // map Power Button short/long press to F34/F35
313 case Key_SysReq: { 317 case Key_SysReq: {
314 if ( isPress ) { 318 if ( isPress ) {
315 if ( m_power_timer ) 319 if ( m_power_timer )
316 killTimer ( m_power_timer ); 320 killTimer ( m_power_timer );
317 m_power_timer = startTimer ( 500 ); 321 m_power_timer = startTimer ( 500 );