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

Error with text input #1324

Closed
1 task done
MjrHangover opened this issue Sep 5, 2019 · 2 comments
Closed
1 task done

Error with text input #1324

MjrHangover opened this issue Sep 5, 2019 · 2 comments
Labels
🔭 area/muya 🐛 bug Something isn't working 🐞 pri/critical Bugs which cause the Mark Text crash or unable to continue normal use

Comments

@MjrHangover
Copy link

MjrHangover commented Sep 5, 2019

Description

  • Can you reproduce the issue?

Steps to reproduce

  1. create a line structure in text, but use 3 '*' instead of 3 '-' and start newline like normal.
  2. cursor doesn't drop down, line doesn't draw out.
  3. can't right click for menu; can't format anything.
  4. save & exit to get it to work again or ctrl-z before '*'

Expected behavior:

Either draw the line with '*' or error out. Instead it acts like part of it is locking up ... UI?

Actual behavior:

Explained above
Link to an example: [optional]

will provide more details/screenshots on request.

Versions

  • Mark Text: v0.15.0
  • Operating system: Win 10 Pro
@DutchPete
Copy link

I am using MT on Linux. Normally putting 3 "-" results in a solid line. In MT it results in a dashed line, so does the use of 3 "*". A solid line is what is needed.

@fxha
Copy link
Contributor

fxha commented Sep 23, 2019

Thank you for taking the time to report this issue! We noticed that the editor crashes if you press two times * (autocompleted to **<cursor>**), set cursor one character to the right and press enter.

Uncaught TypeError: Cannot read property 'key' of undefined
    at Yg.key [as insertAfter] (./build/linux-unpacked/resources/app.asar/dist/electron/webpack:/src/muya/lib/contentState/index.js:510)
    at Yg.insertAfter [as enterHandler] (./build/linux-unpacked/resources/app.asar/dist/electron/webpack:/src/muya/lib/contentState/enterCtrl.js:392)
    at HTMLDivElement.enterHandler (./build/linux-unpacked/resources/app.asar/dist/electron/webpack:/src/muya/lib/eventHandler/keyboard.js:171)

@fxha fxha added 🐛 bug Something isn't working 🐞 pri/critical Bugs which cause the Mark Text crash or unable to continue normal use 🔭 area/muya labels Sep 23, 2019
Jocs pushed a commit that referenced this issue Sep 24, 2019
@Jocs Jocs mentioned this issue Sep 24, 2019
@fxha fxha closed this as completed in d9b7736 Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔭 area/muya 🐛 bug Something isn't working 🐞 pri/critical Bugs which cause the Mark Text crash or unable to continue normal use
Projects
None yet
Development

No branches or pull requests

3 participants