Skip to content

[BUG] when creating a new text box, it is not focused #96

@BaronAWC

Description

@BaronAWC

Describe the bug
when creating a new text box, you have to click on the text box to be able to type, delete, select, etc.

To reproduce
Steps to reproduce the behavior:

  1. create a text box
  2. try typing or using cmd+A or ctrl+A - the typing doesn't work
  3. click on the text box again - now the typing works

Expected behavior
text box is immediately editable without manually focusing it

Screenshots
If applicable, add screenshots to help explain your problem.

Editor version
Is this bug reproducible in Wick Editor 1.19.3/1.19.4 or only Candlestick?
only candlestick, but also only the browser version. though, the desktop one has... its own problems.

Device

  • macbook air m4, chromium browser
  • windows 10, chrome

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
i tried this on a very old branch and the issue was gone, which means we messed something up (which, i guess is a good thing?)

this is the commit where the issue first arises: 879f180

  • it is somewhere in View.Project.js, where the bulk of the mobile gesture code lives. the changes in Tool.js and the gestureActive() function in View.Project.js do not seem to be part of the problem.

Additional context
https://discord.com/channels/1406876763920797717/1406888260591947867/1443037923518844978

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions