Check-in Number:
|
3873 | |
Date: |
2002-Dec-13 20:36:24 (local)
2002-Dec-13 19:36:24 (UTC) |
User: | ms |
Branch: | |
Comment: |
Kill up and down arrow key events in editing mode until we have a consistent
solution to value increments. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/as_table.cpp 1.12 -> 1.13
--- as_table.cpp 2002/12/13 18:55:09 1.12
+++ as_table.cpp 2002/12/13 19:36:24 1.13
@@ -84,13 +84,17 @@
}
return true; // Handle the shift tab key event and cancel its progress
}
+ else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Up && this->getEdition() >= 0) // Handle up key
+ return true; // Capture
+ else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Down && this->getEdition() >= 0) // Handle down key
+ return true; // Capture
else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Escape) // Handle escape key
this->setEdition();
// Forward incompletely handled key events
return QTable::eventFilter(pObject, pEvent);
}
- else // Default behaviour is to pass the event onwards
+ else // Default behaviour is to pass the event onwards
return QTable::eventFilter(pObject, pEvent);
}
|
|