Code Monkey home page Code Monkey logo

Comments (8)

lexxmark avatar lexxmark commented on July 30, 2024

Hi Eric,

Is it standard behavior somewhere?
I think Tab and Shift+Tab are supposed to navigate among controls in direct and reversed order.
Now in QntProperty user can press "arrow down" to move selection one item down and press "enter" or "space" to start edit.

Do you need some single shortcut for these two steps?

Regards,
Alex

from qtnproperty.

levanhong05 avatar levanhong05 commented on July 30, 2024

Hi Alex,

Yes, you right. Almost software use the Tab key to navigate control (Tab in direct and Shift+Tab in reversed order).
I know QtnProperty use "Arrow down/up"+"Enter" to navigate the controls. And I also try to re-implement it, but I still have to use the "Enter" key to start editing (Tab + "Enter).

So I want you help me merge them to the single shortcut.

Regards,
Eric

from qtnproperty.

lexxmark avatar lexxmark commented on July 30, 2024

OK, but Shift+Tab is reserved as standard shortcut for reversed navigation.
What another keyboard combination do you want to use as "move next and edit" command?

from qtnproperty.

levanhong05 avatar levanhong05 commented on July 30, 2024

"move next and edit" = Tab
"move previous and edit" = Shift+Tab

Regards,
Eric

from qtnproperty.

lexxmark avatar lexxmark commented on July 30, 2024

I meant Tab already reserved for "Go to next control" and Shift+Tab - "Go to previous control".
If you press Tab while on PropertyWidget now You will switch focus to the next control on the form.

You should choose other shortcuts.

from qtnproperty.

levanhong05 avatar levanhong05 commented on July 30, 2024

OK, I meant.

"move next and edit" = Ctrl+Tab
"move previous and edit" = Ctrl+Shift+Tab

Regards,
Eric

from qtnproperty.

lexxmark avatar lexxmark commented on July 30, 2024

OK

from qtnproperty.

lexxmark avatar lexxmark commented on July 30, 2024

After some thinking I realize it's hard to implement now.

There are several possibilities for every property delegate:

  1. Delegate doesn't support any input popup widget (like delegate for PropertyBool that directly handles mouse clicks and key presses).
    How Ctrl+Tab should work in this case?

  2. Delegate has one QtnSubItem object that has input widget (for example delegate for PropertyFloat).
    Ctrl+Tab should activate input widget. Simple case.

  3. Delegate has several QtnSubItem objects with different input widgets (I don't have such delegates now but can imagine something like PropertyDate where user can activate day, month or year widget independently).
    How Ctrl+Tab should work in this case?

  4. Complex delegates (PropertySet, PropertyFont, PropertyEnumFlags ...) that have sub-properties.
    How Ctrl+Tab should work in this case?

So I know only solution for case 2 and have no any clear and simple solution for other cases.

What do you think?

P.S. If it hard to understand what I wrote I can make some pictures to illustrate my ideas.

from qtnproperty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.