Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/listpanel.cpp
Context not available. | |||||
537 | } | 537 | } | ||
---|---|---|---|---|---|
538 | } else if(e->type() == QEvent::KeyPress) { | 538 | } else if(e->type() == QEvent::KeyPress) { | ||
539 | auto *ke = dynamic_cast<QKeyEvent *>(e); | 539 | auto *ke = dynamic_cast<QKeyEvent *>(e); | ||
540 | if ((ke->key() == Qt::Key_Down) && (ke->modifiers() == Qt::ControlModifier)) { | 540 | if ((ke->key() == Qt::Key_Escape) && (ke->modifiers() == Qt::NoModifier)) { | ||
541 | slotFocusOnMe(); | | |||
542 | return true; | | |||
543 | } else if ((ke->key() == Qt::Key_Escape) && (ke->modifiers() == Qt::NoModifier)) { | | |||
544 | // reset navigator | 541 | // reset navigator | ||
545 | urlNavigator->editor()->setUrl(urlNavigator->locationUrl()); | 542 | urlNavigator->editor()->setUrl(urlNavigator->locationUrl()); | ||
546 | slotFocusOnMe(); | 543 | slotFocusOnMe(); | ||
Context not available. | |||||
949 | } else | 946 | } else | ||
950 | e->ignore(); | 947 | e->ignore(); | ||
951 | break; | 948 | break; | ||
952 | case Qt::Key_Down : | | |||
953 | if (e->modifiers() == Qt::ControlModifier) { // give the keyboard focus to the command line | | |||
954 | if (MAIN_VIEW->cmdLine()->isVisible()) | | |||
955 | MAIN_VIEW->cmdLineFocus(); | | |||
956 | else | | |||
957 | MAIN_VIEW->focusTerminalEmulator(); | | |||
958 | return; | | |||
959 | } else if (e->modifiers() == (Qt::ControlModifier | Qt::ShiftModifier)) { // give the keyboard focus to TE | | |||
960 | MAIN_VIEW->focusTerminalEmulator(); | | |||
961 | } else | | |||
962 | e->ignore(); | | |||
963 | break; | | |||
964 | | ||||
965 | case Qt::Key_Up : | | |||
966 | if (e->modifiers() == Qt::ControlModifier) { // give the keyboard focus to the url navigator | | |||
967 | editLocation(); | | |||
968 | return; | | |||
969 | } else | | |||
970 | e->ignore(); | | |||
971 | break; | | |||
972 | 949 | | |||
973 | case Qt::Key_Escape: | 950 | case Qt::Key_Escape: | ||
974 | cancelProgress(); | 951 | cancelProgress(); | ||
Context not available. | |||||
1283 | 1260 | | |||
1284 | void ListPanel::getFocusCandidates(QVector<QWidget*> &widgets) | 1261 | void ListPanel::getFocusCandidates(QVector<QWidget*> &widgets) | ||
1285 | { | 1262 | { | ||
1286 | if(urlNavigator->editor()->isVisible()) | 1263 | widgets << urlNavigator->editor(); | ||
1287 | widgets << urlNavigator->editor(); | | |||
1288 | if(view->widget()->isVisible()) | 1264 | if(view->widget()->isVisible()) | ||
1289 | widgets << view->widget(); | 1265 | widgets << view->widget(); | ||
1290 | if(sidebar && sidebar->isVisible()) | 1266 | if(sidebar && sidebar->isVisible()) | ||
Context not available. |