1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

PIM plugin: Enter key on numpad now works for Ctrl+Enter shortcut

This commit is contained in:
nowrep 2012-07-13 16:50:26 +02:00
parent 5e3e9393b1
commit 0986f1362d
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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ć <pejakm@gmail.com>");
spec.icon = QPixmap(":/PIM/data/PIM.png");
spec.hasSettings = true;