[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Mon Jul 7 21:01:22 CEST 2003
CVS commit by staikos:
allow Escape to break out of a zoom
M +7 -1 kstview.cpp 1.21
--- kdeextragear-2/kst/kst/kstview.cpp #1.20:1.21
@@ -613,5 +613,11 @@ void KstView::zoomMaxSlot() {
void KstView::keyPressEvent(QKeyEvent *e) {
MouseInfo->setCursor(true, e->stateAfter());
+
+ if (e->key() == Qt::Key_Escape) {
+ MouseInfo->setMode(INACTIVE);
+ update();
+ } else {
e->ignore();
+ }
}
More information about the Kst
mailing list