Skip to content

Conversation

@wjt
Copy link
Member

@wjt wjt commented Jan 22, 2026

Previously the dialog was not centred on the editor. Make it so by using
EditorInterface.popup_dialog_centered().

Previously, if the editor scale was not 100%, the dialog would not be
the correct size. For example, if the scale was 200%, the dialog would
be tiny and the Create button would not be visible until you resize the
dialog. In the editor, you have to manually scale everything according
to the current scale factor! Do so before popping up the dialog.

Previously you could still interact with the editor even when the dialog was
open. This is inconsistent with other tools like the Project Settings dialog.
Set exclusive to true to prevent this.

Previously, hitting Tab in the description field would insert a tab character.
We do not want tab characters in the description! Set tab_input_mode to false,
which allows pressing Tab to move focus to the Create button.

Make hitting Ctrl+Enter in either of the single-line text fields submit the
form.

Make hitting Esc in the dialog close it unless the copy process is running, just
as if you pressed the (X) in the titlebar.

@wjt wjt requested a review from a team as a code owner January 22, 2026 14:31
…aviour

Previously, the dialog was not centred on the editor. Make it so by using
EditorInterface.popup_dialog_centered().

Previously, if the editor scale was not 100%, the dialog would not be
the correct size. For example, if the scale was 200%, the dialog would
be tiny and the Create button would not be visible until you resize the
dialog. In the editor, you have to manually scale everything according
to the current scale factor! Do so before popping up the dialog.

Previously you could still interact with the editor even when the dialog
was open. This is inconsistent with other tools like the Project
Settings dialog. Set exclusive to true to prevent this.

Previously, hitting Tab in the description field would insert a tab character.
We do not want tab characters in the description! Set tab_input_mode to false,
which allows pressing Tab to move focus to the Create button.

Make hitting Ctrl+Enter in either of the single-line text fields submit the
form.

Make hitting Esc in the dialog close it unless the copy process is running, just
as if you pressed the (X) in the titlebar.
@wjt wjt force-pushed the wjt/storyquest-bootstrap-improve-dialog-size-position-and-keyboard-behaviour branch from 97055cd to 1ad24df Compare January 22, 2026 14:45
@github-actions
Copy link

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/storyquest-bootstrap-improve-dialog-size-position-and-keyboard-behaviour.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Copy link
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent set of improvements to the dialog.

@manuq manuq merged commit 15dde19 into main Jan 24, 2026
6 checks passed
@manuq manuq deleted the wjt/storyquest-bootstrap-improve-dialog-size-position-and-keyboard-behaviour branch January 24, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants