keepassxc/tests/gui
Carlo Teubner 9972b5f531
Fix Copy Password button when text is selected (#10853)
When the user chooses to copy the password for an entry to the clipboard, previously there was logic to check if text was selected, and if so, that text was instead copied to the clipboard. That made sense if
(a) the user invoked the Copy Password action via its keyboard shortcut, and (b) that keyboard shortcut was configured (as per default) to be Ctrl-C, i.e. the same as the system action for copy-to-clipboard.

However, it made no sense if the user invoked that action in some other way, for example by clicking the corresponding toolbar button.

It also made no sense in the case that the Copy Password action had some other keyboard shortcut assigned. Also, if some other action had Ctrl-C assigned, the logic would not kick in then.

Fix all of the above by modifying the keyboard shortcut logic to intervene precisely in the case where a shortcut is pressed that matches the system copy-to-clipboard shortcut; only in that case do we now check if text is selected and if so copy that to the clipboard instead of the action we would otherwise take.

Fixes #10734.
2024-06-19 08:03:42 -04:00
..
CMakeLists.txt Support remote database access using external tools (#7222) 2024-06-13 06:23:41 -04:00
TestGui.cpp Fix Copy Password button when text is selected (#10853) 2024-06-19 08:03:42 -04:00
TestGui.h Support remote database access using external tools (#7222) 2024-06-13 06:23:41 -04:00
TestGuiBrowser.cpp Fix several issues with Quick Unlock (#9697) 2023-08-10 08:21:08 -04:00
TestGuiBrowser.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestGuiFdoSecrets.cpp Add configurable password strength check on database password (#9782) 2024-01-06 13:53:18 -05:00
TestGuiFdoSecrets.h FdoSecrets: add smarter handling of database unlock requests 2022-06-04 16:27:18 -04:00
TestGuiPixmaps.cpp Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
TestGuiPixmaps.h Optimize includes across code base 2021-07-13 22:08:33 -04:00