Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger user interaction event on key release #77

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions import/abstractdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ void AbstractDelegate::mousePressEvent(QMouseEvent *event)
triggerGuiEvent(QStringLiteral("system.gui.user.interaction"), QVariantMap({{QStringLiteral("skillId"), m_skillId}}));
}

void AbstractDelegate::keyReleaseEvent(QKeyEvent *event)
{
triggerGuiEvent(QStringLiteral("system.gui.user.interaction"), QVariantMap({{QStringLiteral("skillId"), m_skillId}}));
}

void AbstractDelegate::focusInEvent(QFocusEvent *event)
{
//if the focus came from the server, don't ask the server again
Expand Down
1 change: 1 addition & 0 deletions import/abstractdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public Q_SLOTS:
void componentComplete() override;
bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
void focusInEvent(QFocusEvent *event) override;

Q_SIGNALS:
Expand Down