Skip to content

Conversation

@maddyaby
Copy link
Contributor

@maddyaby maddyaby commented Jan 6, 2025

Cocoa was missing handler for calling prompt("...")

This adds the popup and input handling. It also adds the Edit menu item to handle cut/copy/paste for subviews and modals in addition to the main view

@maddyaby maddyaby force-pushed the prompt_handler_macos branch 2 times, most recently from d4c31c3 to a92e0be Compare January 8, 2025 19:10
@r0x0r
Copy link
Owner

r0x0r commented Jan 8, 2025

Prompt works fine, but there is no Edit menu item.

@maddyaby
Copy link
Contributor Author

maddyaby commented Jan 9, 2025 via email

Cocoa was missing handler for calling prompt("...")

This adds the popup and input handling
…erts, etc.

The existing implementation in the keyDown_ handler only works on items in the main view and not in subviews/modals
@maddyaby
Copy link
Contributor Author

maddyaby commented Feb 4, 2025

This is the edit menu, up in the top bar:
image

@maddyaby maddyaby force-pushed the prompt_handler_macos branch from a92e0be to 28dab57 Compare February 4, 2025 18:02
@maddyaby
Copy link
Contributor Author

maddyaby commented Feb 4, 2025

rebased and updated

@r0x0r r0x0r merged commit 635522e into r0x0r:master Feb 4, 2025
1 check passed
r0x0r pushed a commit that referenced this pull request Feb 11, 2025
* [Cocoa] Add handler for javascript prompt/input.

Cocoa was missing handler for calling prompt("...")

This adds the popup and input handling

* [Cocoa] Add edit menu to get cut/copy/paste/selectAll on submenus, alerts, etc.

The existing implementation in the keyDown_ handler only works on items in the main view and not in subviews/modals
@r0x0r r0x0r mentioned this pull request Jun 15, 2025
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.

2 participants