Skip to content

Commit

Permalink
[fingerterm] Don't play haptic feedback on both press and release. Fi…
Browse files Browse the repository at this point in the history
…xes JB#53970
  • Loading branch information
Joona Petrell committed Apr 19, 2021
1 parent 8eccf10 commit c57a87d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions qml/Key.qml
Expand Up @@ -159,8 +159,6 @@ Rectangle {
}

if (vkb.keyAt(x, y) == key) {
util.keyReleaseFeedback();

if (key.sticky && key.becomesSticky) {
setStickiness(-1);
}
Expand Down
11 changes: 0 additions & 11 deletions util.cpp
Expand Up @@ -163,17 +163,6 @@ void Util::keyPressFeedback()
#endif
}

void Util::keyReleaseFeedback()
{
if( !settingsValue("ui/keyReleaseFeedback", true).toBool() )
return;

// TODO: check what's more comfortable, only press, or press and release
#ifdef HAVE_FEEDBACK
QFeedbackEffect::playThemeEffect(QFeedbackEffect::ReleaseWeak);
#endif
}

void Util::bellAlert()
{
if(!iWindow)
Expand Down
1 change: 0 additions & 1 deletion util.h
Expand Up @@ -93,7 +93,6 @@ class Util : public QObject
void setFontSize(int size);

Q_INVOKABLE void keyPressFeedback();
Q_INVOKABLE void keyReleaseFeedback();
Q_INVOKABLE void notifyText(QString text);

Q_INVOKABLE void copyTextToClipboard(QString str);
Expand Down

0 comments on commit c57a87d

Please sign in to comment.