0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/keepassxc/src-gui-entry-EntryView.cpp.patch
2023-10-24 23:58:08 +03:00

36 lines
1.3 KiB
Diff

diff -uNr keepassxc-2.6.6/src/gui/entry/EntryView.cpp keepassxc-2.6.6.mod/src/gui/entry/EntryView.cpp
--- keepassxc-2.6.6/src/gui/entry/EntryView.cpp 2021-06-12 05:13:52.000000000 +0300
+++ keepassxc-2.6.6.mod/src/gui/entry/EntryView.cpp 2021-07-25 20:39:53.910034225 +0300
@@ -18,10 +18,11 @@
#include "EntryView.h"
-#include <QAccessible>
+#include <QCoreApplication>
#include <QDrag>
#include <QGuiApplication>
#include <QHeaderView>
+#include <QKeyEvent>
#include <QListWidget>
#include <QMenu>
#include <QPainter>
@@ -181,18 +182,15 @@
int last = m_model->rowCount() - 1;
if (last > 0) {
- QAccessibleEvent accessibleEvent(this, QAccessible::PageChanged);
if (event->key() == Qt::Key_Up && currentIndex().row() == 0) {
QModelIndex index = m_sortModel->mapToSource(m_sortModel->index(last, 0));
setCurrentEntry(m_model->entryFromIndex(index));
- QAccessible::updateAccessibility(&accessibleEvent);
return;
}
if (event->key() == Qt::Key_Down && currentIndex().row() == last) {
QModelIndex index = m_sortModel->mapToSource(m_sortModel->index(0, 0));
setCurrentEntry(m_model->entryFromIndex(index));
- QAccessible::updateAccessibility(&accessibleEvent);
return;
}
}