--- a/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp Wed Sep 01 12:23:33 2010 +0100
+++ b/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp Tue Sep 14 21:59:06 2010 +0300
@@ -59,9 +59,13 @@
CFepUiBaseCtrl::BaseConstructL();
//tap accuracy enhancement
- if( FeatureManager::FeatureSupported( KFeatureIdFfCapacitiveDisplay ))
+ if ( FeatureManager::FeatureSupported( KFeatureIdFfCapacitiveDisplay ) )
{
- EnableExtResponseArea( ETrue, TRect(TPoint(10,10),TSize(10,10)) );
+ TMargins margins;
+ UiLayout()->GetButtonExtResponseArea( margins );
+ TPoint topLeftMargin( margins.iLeft, margins.iTop );
+ TSize bottomRightMargin( margins.iRight, margins.iBottom );
+ EnableExtResponseArea( ETrue, TRect( topLeftMargin,bottomRightMargin ) );
}
}