History

Fix 1-9 keys not working in Running Scripts widget

Ryan Huffman committed 12 years ago

Commit 8480d021 parent c3d8cce2 files · +8 −0Browse files

Showing the changes to interface/src/ui/ScriptsTableWidget.cpp (1 of 2 files). Show all

Unified · Split

interface/src/ui/ScriptsTableWidget.cpp+6−0
@@ -10,6 +10,7 @@ · 9 unmodified lines
1010 #include <QHeaderView>
1111 #include <QPainter>
1212 #include <QDebug>
13+#include <QKeyEvent>
1314
1415 ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) :
1516 QTableWidget(parent)
@@ -39,3 +40,8 @@ void ScriptsTableWidget::paintEvent(QPaintEvent *event) · 23 unmodified lines
3940
4041 QTableWidget::paintEvent(event);
4142 }
43+
44+void ScriptsTableWidget::keyPressEvent(QKeyEvent *event) {
45+ // Ignore keys so they will propagate correctly
46+ event->ignore();
47+}