Repository: klembot/twinejs

Issue #1425: [2.7.0] cannot enter a newline after using a macro.
Created: 2023-07-16T17:27:11Z
Describe the bug.
After using any macro(which triggers the code completion), I can neither type in EOL(newline) nor navigate with the arrow keys.
Steps to reproduce:

Open a passage editor
Use any macro
press enter or arrow keys

Expected behavior:
A newline should be typed in or the cursor should move after pressing the keys.
Additional context on this problem.
The problem disappeared after closing the passage editor and opening it again. But it appeared again, after I used another macro.
The problem doesn't exist in 2.6.2 or other older versions, so it could be a regression.
Twine version number
2.7.0
Does this problem occur with the web version of Twine or the desktop app?
Desktop app
What operating system does this problem occur on?
Windows
If this problem is occurring with the web version of Twine, what browser does it occur on?
None
Presubmission checklist

 I am interested in working on code that would fix this bug. (This is not required to submit a bug report.)
 I have done a search and believe that an issue does not already exist for this bug in the GitHub repository.
 If this problem is occurring with the app version of Twine, it still happens after I remove the user.css file from my Twine folder. (You would've added this file yourself. If you don't understand this question, you can safely check this box.)
 I have read and agree to abide by this project's Code of Conduct.

Duplicate issue #1428: Using macro autocomplete freezes enter key, up and down arrows
Created: 2023-07-23T13:35:47Z
Describe the bug.
In 2.7.0.0, after typing a macro and the drop-down menu showing up, pressing enter key or the up or down arrows does nothing, even though the drop-down autocomplete menu has resolved. I need to exit out of the passage and return for the enter key to work again.
Steps to reproduce:
Open a passage. Start typing a macro (e.g. (if:), (print:) etc.). If the autocomplete menu shows up or you use the autocomplete menu, you can no longer press enter, up arrow, or down arrow.
Expected behavior:
Enter should create a new line, up and down should move up and down the passage.
Additional context on this problem.
No response
Twine version number
2.7.0.0
Does this problem occur with the web version of Twine or the desktop app?
Desktop app
What operating system does this problem occur on?
Windows
If this problem is occurring with the web version of Twine, what browser does it occur on?
None
Presubmission checklist

 I am interested in working on code that would fix this bug. (This is not required to submit a bug report.)
 I have done a search and believe that an issue does not already exist for this bug in the GitHub repository.
 If this problem is occurring with the app version of Twine, it still happens after I remove the user.css file from my Twine folder. (You would've added this file yourself. If you don't understand this question, you can safely check this box.)
 I have read and agree to abide by this project's Code of Conduct.

Closing comment (2023-07-24T00:56:52Z): @UtilityHotbar
Based on the syntax of the macros you included and you mentioning an autocomplete feature I will assume you are using Harlowe.
And based on current information it appears the unwanted behaviour is caused by Harlowe's Passage Editor extension, and not by the Twine 2.x application itself. I suggest you report this issue on Harlowe's Heptapod repository.
Duplicate of #1425