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:
parent
5e3e9393b1
commit
0986f1362d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user