summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdeeventdevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/tdeeventdevice.cpp')
-rw-r--r--tdecore/tdehw/tdeeventdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdeeventdevice.cpp b/tdecore/tdehw/tdeeventdevice.cpp
index 3a45cf5d1..185c4153d 100644
--- a/tdecore/tdehw/tdeeventdevice.cpp
+++ b/tdecore/tdehw/tdeeventdevice.cpp
@@ -143,7 +143,7 @@ void TDEEventDevice::eventReceived() {
int r;
r = read(m_fd, &ev, sizeof(struct input_event));
if (r > 0) {
- if (ev.type == EV_KEY) {
+ if ((ev.type == EV_KEY) && (ev.value == 1)) { // Only detect keypress events (value == 1)
emit keyPressed(ev.code, this);
}
}