equal
deleted
inserted
replaced
22 |
22 |
23 CAknListQueryNotificationDialog::CAknListQueryNotificationDialog( |
23 CAknListQueryNotificationDialog::CAknListQueryNotificationDialog( |
24 TInt* aIndex, |
24 TInt* aIndex, |
25 MAknListQueryNotificationCallback* aCallBack, |
25 MAknListQueryNotificationCallback* aCallBack, |
26 CAknListQueryNotificationDialog** aSelfPtr) |
26 CAknListQueryNotificationDialog** aSelfPtr) |
27 : CAknListQueryDialog(aIndex), iCallBack(aCallBack), iSelfPtr(aSelfPtr) |
27 : CAknListQueryDialog(aIndex) |
|
28 , iCallBack(aCallBack) |
|
29 , iSelfPtr(aSelfPtr) |
|
30 , iPointerUpEaten(EFalse) |
28 { |
31 { |
29 } |
32 } |
30 |
33 |
31 CAknListQueryNotificationDialog::~CAknListQueryNotificationDialog() |
34 CAknListQueryNotificationDialog::~CAknListQueryNotificationDialog() |
32 { |
35 { |
52 |
55 |
53 if (aType != EEventKey) |
56 if (aType != EEventKey) |
54 { |
57 { |
55 return EKeyWasNotConsumed; |
58 return EKeyWasNotConsumed; |
56 } |
59 } |
|
60 |
|
61 iPointerUpEaten = EFalse; |
57 |
62 |
58 TInt code = aKeyEvent.iCode; |
63 TInt code = aKeyEvent.iCode; |
59 |
64 |
60 switch (code) |
65 switch (code) |
61 { |
66 { |
109 CAknListQueryDialog::HandleListBoxEventL(aListBox, aEventType); |
114 CAknListQueryDialog::HandleListBoxEventL(aListBox, aEventType); |
110 } |
115 } |
111 |
116 |
112 TBool CAknListQueryNotificationDialog::OkToExitL(TInt aButtonId) |
117 TBool CAknListQueryNotificationDialog::OkToExitL(TInt aButtonId) |
113 { |
118 { |
|
119 // Fix the problem where the pointer up event is handled to close the power menu key, |
|
120 // when the popup shows on the top of power menu before releasing the tap. |
|
121 if (iPointerUpEaten && AknLayoutUtils::PenEnabled() && aButtonId == EAknSoftkeyOk) |
|
122 { |
|
123 iPointerUpEaten = EFalse; |
|
124 return EFalse; |
|
125 } |
|
126 |
114 TInt ret = -1; |
127 TInt ret = -1; |
115 if (aButtonId != EAknSoftkeyCancel) |
128 if (aButtonId != EAknSoftkeyCancel) |
116 { |
129 { |
117 ret = ListBox()->CurrentItemIndex(); |
130 ret = ListBox()->CurrentItemIndex(); |
118 } |
131 } |
120 if (aButtonId == EAknSoftkeyCancel || aButtonId == EAknSoftkeyOk) |
133 if (aButtonId == EAknSoftkeyCancel || aButtonId == EAknSoftkeyOk) |
121 { |
134 { |
122 return ETrue; |
135 return ETrue; |
123 } |
136 } |
124 return EFalse; |
137 return EFalse; |
|
138 } |
|
139 |
|
140 void CAknListQueryNotificationDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
|
141 { |
|
142 iPointerUpEaten = EFalse; |
|
143 if (aPointerEvent.iType == TPointerEvent::EButton1Up && !IsFocused()) |
|
144 { |
|
145 iPointerUpEaten = ETrue; |
|
146 } |
|
147 |
|
148 CAknListQueryDialog::HandlePointerEventL(aPointerEvent); |
125 } |
149 } |
126 |
150 |
127 void CAknListQueryNotificationDialog::CEikDialog_Reserved_1() |
151 void CAknListQueryNotificationDialog::CEikDialog_Reserved_1() |
128 { |
152 { |
129 } |
153 } |