Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.cpp
Context not available. | |||||
1186 | 1186 | | |||
---|---|---|---|---|---|
1187 | void KateMainWindow::mousePressEvent(QMouseEvent *e) | 1187 | void KateMainWindow::mousePressEvent(QMouseEvent *e) | ||
1188 | { | 1188 | { | ||
1189 | bool shiftPressed = QGuiApplication::keyboardModifiers() == Qt::ShiftModifier; | ||||
1189 | switch (e->button()) { | 1190 | switch (e->button()) { | ||
1190 | case Qt::ForwardButton: | 1191 | case Qt::ForwardButton: | ||
1191 | slotFocusNextTab(); | 1192 | if(shiftPressed) { | ||
1193 | slotRedoCursorMove(); | ||||
1194 | } else { | ||||
1195 | slotFocusNextTab(); | ||||
1196 | } | ||||
1192 | break; | 1197 | break; | ||
1193 | case Qt::BackButton: | 1198 | case Qt::BackButton: | ||
1194 | slotFocusPrevTab(); | 1199 | if(shiftPressed) { | ||
1200 | slotUndoCursorMove(); | ||||
1201 | } else { | ||||
1202 | slotFocusPrevTab(); | ||||
1203 | } | ||||
1195 | break; | 1204 | break; | ||
1196 | default:; | 1205 | default:; | ||
1197 | } | 1206 | } | ||
Context not available. | |||||
1211 | } | 1220 | } | ||
1212 | } | 1221 | } | ||
1213 | 1222 | | |||
1223 | void KateMainWindow::slotUndoCursorMove() | ||||
1224 | { | ||||
1225 | m_viewManager->undoCursorMove(); | ||||
1226 | } | ||||
1227 | | ||||
1228 | void KateMainWindow::slotRedoCursorMove() | ||||
1229 | { | ||||
1230 | m_viewManager->redoCursorMove(); | ||||
1231 | } | ||||
1232 | | ||||
1214 | void KateMainWindow::slotQuickOpen() | 1233 | void KateMainWindow::slotQuickOpen() | ||
1215 | { | 1234 | { | ||
1216 | /** | 1235 | /** | ||
Context not available. |