Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/PanelView/krinterbriefview.cpp
Context not available. | |||||
162 | 162 | | |||
---|---|---|---|---|---|
163 | bool KrInterBriefView::handleKeyEvent(QKeyEvent *e) | 163 | bool KrInterBriefView::handleKeyEvent(QKeyEvent *e) | ||
164 | { | 164 | { | ||
165 | if ((e->key() != Qt::Key_Left && e->key() != Qt::Key_Right) && (KrView::handleKeyEvent(e))) | 165 | | ||
166 | if (((e->key() != Qt::Key_Left && e->key() != Qt::Key_Right) || (e->modifiers() == Qt::ControlModifier)) && (KrView::handleKeyEvent(e))) | ||||
166 | // did the view class handled the event? | 167 | // did the view class handled the event? | ||
167 | return true; | 168 | return true; | ||
168 | 169 | | |||
169 | switch (e->key()) { | 170 | switch (e->key()) { | ||
170 | case Qt::Key_Right : { | 171 | case Qt::Key_Right : { | ||
171 | if (e->modifiers() == Qt::ControlModifier) { | | |||
172 | // let the panel handle it | | |||
173 | e->ignore(); | | |||
174 | break; | | |||
175 | } | | |||
176 | KrViewItem *i = getCurrentKrViewItem(); | 172 | KrViewItem *i = getCurrentKrViewItem(); | ||
177 | KrViewItem *newCurrent = i; | 173 | KrViewItem *newCurrent = i; | ||
178 | 174 | | |||
Context not available. | |||||
199 | return true; | 195 | return true; | ||
200 | } | 196 | } | ||
201 | case Qt::Key_Left : { | 197 | case Qt::Key_Left : { | ||
202 | if (e->modifiers() == Qt::ControlModifier) { | | |||
203 | // let the panel handle it | | |||
204 | e->ignore(); | | |||
205 | break; | | |||
206 | } | | |||
207 | KrViewItem *i = getCurrentKrViewItem(); | 198 | KrViewItem *i = getCurrentKrViewItem(); | ||
208 | KrViewItem *newCurrent = i; | 199 | KrViewItem *newCurrent = i; | ||
209 | 200 | | |||
Context not available. |