Skip to content

Alternative impl for copy-to-clipboard shortcut#10966

Merged
droidmonkey merged 1 commit intokeepassxreboot:developfrom
c4rlo:copy-shortcut-macos-fix
Aug 11, 2024
Merged

Alternative impl for copy-to-clipboard shortcut#10966
droidmonkey merged 1 commit intokeepassxreboot:developfrom
c4rlo:copy-shortcut-macos-fix

Conversation

@c4rlo
Copy link
Copy Markdown
Contributor

@c4rlo c4rlo commented Jun 23, 2024

It turns out that the previous implementation, based on installing an event filter in every QAction instance, does not work on macOS, likely due to a Qt bug: #10929.

Attempt to work around this by using a different implementation of the same idea, by reacting to ShortcutOverride events in the MainWindow object.

Fixes #10929 – hopefully.

Testing strategy

Tested manually on Linux/Wayland. Also ran all tests, including GUI tests.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey
Copy link
Copy Markdown
Member

I'll give this a test on macOS

@droidmonkey droidmonkey added this to the v2.7.10 milestone Jul 1, 2024
@Pyppe
Copy link
Copy Markdown

Pyppe commented Jul 7, 2024

@droidmonkey Were you able to give it a go? 🤞

I've been bitten by this many times since upgrading to the latest version on macOS. 😅

@droidmonkey
Copy link
Copy Markdown
Member

Sorry I lost track on this one, just tested on macOS and it works flawlessly now.

@droidmonkey droidmonkey force-pushed the copy-shortcut-macos-fix branch from 077386d to 311536d Compare July 7, 2024 21:30
It turns out that the previous implementation, based on installing an event filter in every QAction instance, does not work on macOS, likely due to a Qt bug.

Attempt to work around this by using a different implementation of the same idea, by reacting to ShortcutOverride events in the MainWindow object.

Fixes keepassxreboot#10929.
@droidmonkey droidmonkey force-pushed the copy-shortcut-macos-fix branch from 311536d to 2c06afd Compare August 11, 2024 21:14
@droidmonkey droidmonkey merged commit 42ce2a4 into keepassxreboot:develop Aug 11, 2024
@droidmonkey droidmonkey added the pr: backported Pull request backported to previous release label Aug 14, 2024
@phoerious phoerious added pr: bugfix Pull request fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: macOS pr: backported Pull request backported to previous release pr: bugfix Pull request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.7.9 copies password instead of marked text from notes field into clipboard

4 participants