Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hja3
Copy link

@hja3 hja3 commented Sep 8, 2025

Dear Bibletime team,

I submit the following patch for consideration.

The action triggered by Ctrl+L was calling setFocus on the key chooser widget directly, meaning that if the key chooser already had focus it would not receive another focus event (and thus would not re-select its contents). With this patch the focus is set indirectly via a dedicated, virtual focusLocation slot added to CKeyChooser. Each derived key chooser then implements focusLocation as required.

This change also makes the private BtKeyLineEdit and BtLineEdit replaceable with standard QLineEdit instances, because those derived classes existed only for the purpose of overriding QLineEdit::focusInEvent.

@hja3 hja3 changed the title Implement focus location feature request (#353) Implement focus location feature request (Issue #353) Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant