------------------------------------------------------------------------------
| 131 | |
| 132 | //------------------------------------------------------------------------------ |
| 133 | bool GuiPopupTextListCtrl::onKeyDown(const GuiEvent &event) |
| 134 | { |
| 135 | //if the control is a dead end, don't process the input: |
| 136 | if ( !mVisible || !mActive || !mAwake ) |
| 137 | return false; |
| 138 | |
| 139 | //see if the key down is a <return> or not |
| 140 | if ( event.modifier == 0 ) |
| 141 | { |
| 142 | if ( event.keyCode == KEY_RETURN ) |
| 143 | { |
| 144 | mPopUpCtrl->closePopUp(); |
| 145 | return true; |
| 146 | } |
| 147 | else if ( event.keyCode == KEY_ESCAPE ) |
| 148 | { |
| 149 | mSelectedCell.set( -1, -1 ); |
| 150 | mPopUpCtrl->closePopUp(); |
| 151 | return true; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | //otherwise, pass the event to it's parent |
| 156 | return Parent::onKeyDown(event); |
| 157 | } |
| 158 | |
| 159 | void GuiPopupTextListCtrl::onMouseUp(const GuiEvent &event) |
| 160 | { |
nothing calls this directly
no test coverage detected