summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp4
-rw-r--r--libopie2/opiecore/device/odevice_mypal.cpp4
2 files changed, 6 insertions, 2 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
( d->m_model == Model_iPAQ_H191x ) ||
( d->m_model == Model_iPAQ_H1940 ))
newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
break;
}
+ // map Power Button short/long press to F6 for h191x
+ case Key_F6:
+ if ( d->m_model != Model_iPAQ_H191x )
+ break;
// map Power Button short/long press to F34/F35
case Key_SysReq: {
if ( isPress ) {
if ( m_power_timer )
killTimer ( m_power_timer );
m_power_timer = startTimer ( 500 );
diff --git a/libopie2/opiecore/device/odevice_mypal.cpp b/libopie2/opiecore/device/odevice_mypal.cpp
index da0272e..7e1245a 100644
--- a/libopie2/opiecore/device/odevice_mypal.cpp
+++ b/libopie2/opiecore/device/odevice_mypal.cpp
@@ -146,14 +146,14 @@ bool MyPal::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress,
// add the offset to the Key_Left key
if ( d->m_model == Model_MyPal_716 )
newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
break;
}
- // map Power Button short/long press to F34/F35
- case Key_SysReq: {
+ // map Power Button short/long press to F6
+ case Key_F6: {
if ( isPress ) {
if ( m_power_timer )
killTimer ( m_power_timer );
m_power_timer = startTimer ( 500 );
}
else if ( m_power_timer ) {