Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No focus on input field #72

Open
abitrolly opened this issue Oct 29, 2018 · 1 comment
Open

No focus on input field #72

abitrolly opened this issue Oct 29, 2018 · 1 comment

Comments

@abitrolly
Copy link

I've been sent here from manatools/dnfdragora#119 (comment) where setKeyboardFocus() doesn't set the focus on InputField for some reason.

@abitrolly abitrolly changed the title No focus on search field No focus on input field Oct 29, 2018
@abitrolly
Copy link
Author

Could be a conflict between dialog.setDefaultButton and setKeyboardFocus on element.

        self.find_entry = self.factory.createInputField(hbox_top, "")

        icon_file = self.images_path + "find.png"
        self.find_button = self.factory.createIconButton(hbox_top, icon_file, _("&Search"))
        self.find_button.setWeight(0,6)
        self.dialog.setDefaultButton(self.find_button)
        self.find_entry.setKeyboardFocus()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant