Skip to content

Conversation

@Nishat30
Copy link
Contributor

@Nishat30 Nishat30 commented Oct 3, 2025

This PR enhances the user experience by establishing an explicit method for running code and cleaning up the control area.

Key Changes:

Explicit Run Control: Added a dedicated icon-only Run button (▶️) next to the settings gear.
Disabled Implicit Execution: The 'Enter' key shortcut is now disabled to prevent accidental code execution while editing, enforcing user control via the Run button.
Unified Control Styling: The Run and Settings buttons have been styled identically as minimalist icons for a cleaner look.
Refined Logic: Removed the unused handleKeyDown and setupEditor methods as they are no longer necessary for keybinding management.

Verification Steps:

Confirm the code only runs when clicking the ▶️ button. Pressing 'Enter' in the editor should no longer trigger execution.
Verify the ▶️ button and ⚙️ button are styled consistently as clean icons

Screenshot 2025-10-03 130234

@vanholler
Copy link
Owner

@Nishat30
Thank you, good job, but the keyboard shortcut functions need to be preserved, as well as the execution of the enter, since this program strives to be similar to the browser console, where enter is the launch, and shift + enter is a line break. in the future, we will put it in the settings, and the user will choose for himself whether he needs to change it or remove it altogether.

@Nishat30
Copy link
Contributor Author

Nishat30 commented Oct 3, 2025

@vanholler i can add this in setting if you want
please raise this issue and assign me

@vanholler
Copy link
Owner

vanholler commented Oct 3, 2025

and in this thread, I noticed an interesting behavior, if you copy the Global Scope first, and then the Console Output, then the input of the code editor is blocked.

image

and the copy button displays a windows window with information, although in the Global Scope, after clicking, just the text copied.
image

@Nishat30
Copy link
Contributor Author

Nishat30 commented Oct 3, 2025

@vanholler where i didn't understand what you want?

@vanholler
Copy link
Owner

@Nishat30 After clicking the copy button, the code editor is locked in the Console Output block.
I can delete text, but it doesn't allow me to write new text.

@Nishat30
Copy link
Contributor Author

Nishat30 commented Oct 3, 2025

@vanholler okay i will resolve this issue ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants