Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/krsearchbar.cpp
Context not available. | |||||
106 | _view->widget()->installEventFilter(this); | 106 | _view->widget()->installEventFilter(this); | ||
---|---|---|---|---|---|
107 | } | 107 | } | ||
108 | 108 | | |||
109 | void KrSearchBar::hideBarIfSearching() | ||||
110 | { | ||||
111 | if (_currentMode == MODE_SEARCH) | ||||
112 | hideBar(); | ||||
113 | } | ||||
114 | | ||||
109 | // #### public slots | 115 | // #### public slots | ||
110 | 116 | | |||
111 | void KrSearchBar::showBar(SearchMode mode) | 117 | void KrSearchBar::showBar(SearchMode mode) | ||
Context not available. | |||||
313 | hideBar(); | 319 | hideBar(); | ||
314 | return true; | 320 | return true; | ||
315 | } | 321 | } | ||
322 | | ||||
323 | case Qt::Key_Enter: | ||||
324 | case Qt::Key_Return: { | ||||
325 | hideBarIfSearching(); | ||||
326 | return false; | ||||
327 | } | ||||
328 | | ||||
316 | case Qt::Key_Up: | 329 | case Qt::Key_Up: | ||
317 | return handleUpDownKeyPress(true); | 330 | return handleUpDownKeyPress(true); | ||
318 | case Qt::Key_Down: | 331 | case Qt::Key_Down: | ||
Context not available. |