lirios / lirios/fluid

do we need to grab keyboard focus on SearchBar open?

Open
#216 7 comments 0 reactions 1 assignee View on GitHub

@plfiorini is already working on this.

Since Mar 22, 2018.

question
Dominant language
QML
Stars
890
Forks
120
Avg merge
1d 7h
Merged PRs (30d)
1

Description

Hi I have a situation where the opening screen of an app has a SearchBox
which should start in open state. I have put persistent: true as i do not want
it to be closable.

I find that i am having to call open() explicitly to show the searchbox , firstly is it necessary ?

in doing so the inputbox grabs focus and the OSK in the mobile device opens . Subsequently
as soon as the app starts the keyboard also opens automatically. I am not sure if i have
erred somewhere , but i feel we should not forceActiveFocus() in open (Line: 105)

https://github.com/lirios/fluid/blob/0f1c8b52ffcd32605e29a0071e29be44c9ea0c6b/src/imports/controls/SearchBar.qml#L105

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.