mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 23:02:41 -08:00
Prevent mouse wheel scroll on entry edit username field (#12398)
* Reported by shawnkhu via Matrix, thank you!
This commit is contained in:
1 parent
544f983bad
commit
606cf37952
4 files changed
+32
-22
No files matched your search
@@ -53,6 +53,7 @@
|
||||
#include "gui/EditWidgetProperties.h"
|
||||
#include "gui/FileDialog.h"
|
||||
#include "gui/Font.h"
|
||||
#include "gui/GuiTools.h"
|
||||
#include "gui/Icons.h"
|
||||
#include "gui/MessageBox.h"
|
||||
#include "gui/entry/AutoTypeAssociationsModel.h"
|
||||
@@ -185,7 +186,10 @@ void EditEntryWidget::setupMain()
|
||||
m_mainUi->setupUi(m_mainWidget);
|
||||
addPage(tr("Entry"), icons()->icon("document-edit"), m_mainWidget);
|
||||
|
||||
// Disable mouse wheel grab when scrolling
|
||||
m_mainUi->usernameComboBox->installEventFilter(new MouseWheelEventFilter(this));
|
||||
m_mainUi->usernameComboBox->setEditable(true);
|
||||
m_mainUi->usernameComboBox->lineEdit()->setFocusPolicy(Qt::StrongFocus);
|
||||
m_usernameCompleter->setCompletionMode(QCompleter::InlineCompletion);
|
||||
m_usernameCompleter->setCaseSensitivity(Qt::CaseSensitive);
|
||||
m_usernameCompleter->setModel(m_usernameCompleterModel);
|
||||
|
||||
Reference in new issue
Block a user