From 0986f1362d7ad614cb22c38aab4ae91d90724318 Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 13 Jul 2012 16:50:26 +0200 Subject: [PATCH] PIM plugin: Enter key on numpad now works for Ctrl+Enter shortcut --- src/plugins/PIM/PIM_handler.cpp | 3 ++- src/plugins/PIM/PIM_plugin.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/PIM/PIM_handler.cpp b/src/plugins/PIM/PIM_handler.cpp index e59006911..6579a91a1 100644 --- a/src/plugins/PIM/PIM_handler.cpp +++ b/src/plugins/PIM/PIM_handler.cpp @@ -134,8 +134,9 @@ bool PIM_Handler::keyPress(WebView* view, QKeyEvent* event) } bool isEnter = event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter; + bool isControlModifier = event->modifiers() & Qt::ControlModifier; - if (!isEnter || event->modifiers() != Qt::ControlModifier) { + if (!isEnter || !isControlModifier) { return false; } diff --git a/src/plugins/PIM/PIM_plugin.cpp b/src/plugins/PIM/PIM_plugin.cpp index 770f33158..c1a303cc3 100644 --- a/src/plugins/PIM/PIM_plugin.cpp +++ b/src/plugins/PIM/PIM_plugin.cpp @@ -38,7 +38,7 @@ PluginSpec PIM_Plugin::pluginSpec() spec.name = "PIM"; spec.info = "Personal Information Manager"; spec.description = "Adds ability for Qupzilla to store some personal data"; - spec.version = "0.0.1"; + spec.version = "0.1.1"; spec.author = QString::fromUtf8("Mladen Pejaković "); spec.icon = QPixmap(":/PIM/data/PIM.png"); spec.hasSettings = true;