OpenPonk / openponk

The OpenPonk modeling platform
https://openponk.github.io/
MIT License
43 stars 9 forks source link

[Bug] Text prompts cannot be confirmed with Enter key #76

Closed sdasda7777 closed 1 year ago

sdasda7777 commented 2 years ago

After pressing Enter, the cursor gets moved to the beginning of the line, but the prompt is not confirmed.

image

sdasda7777 commented 1 year ago

Tracked it down to Spec, created an issue.

sdasda7777 commented 1 year ago

@JanBliznicenko Hey, I noticed that the MorphicUIManager's request: (which is used when creating Note elements) can be confirmed with the press of enter key. Is there a reason why it's not used more?

MorphicUIManager new request: 'Provide your name, please'

It can also do initial value:

MorphicUIManager new request: 'Provide new element name, please' initialAnswer: 'old element name'
JanBliznicenko commented 1 year ago

Generally I try to use Spec (that internally may use Morphic or other backend) instead of Morphic directly as it is usually easier and same across all aspects of the UI. Yet in this case, the dialog might be easily replaced with its Morphic counterpart directly, true. Well, we also have a closed-source extension of OP that extends this dialog for some purposes that might require more changes to do that on Morphic level, but might be doable. I will try to take a look into it.