Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Fix default context-menu in selected disabled inputs #2753

Merged

Conversation

mmghv
Copy link
Contributor

@mmghv mmghv commented Jun 30, 2023

processDefaultContextMenu() was missing showing the default context-menu for selected text in a disabled or readonly input, this PR fixes that to be aligned with v2.

@@ -28,7 +28,7 @@ func main() {
mainWindow := app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
Title: "Context Menu Demo",
Width: 1024,
Height: 1124,
Height: 1024,
Copy link
Member

Choose a reason for hiding this comment

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

I set this to 1124 as all the boxes didn't fit on Windows :-) Do they all fit in Mac?

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member

Choose a reason for hiding this comment

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

I just sized it and then ran wails.Window.Size() in devtools and got this:

height: 1681,
width:1024

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On my screen a little bit was hidden under the windows taskbar, so made it smaller to fit and scrollbars with appear, I don't know how it looks on Mac.

Copy link
Member

Choose a reason for hiding this comment

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

Ah the joys of different screen resolutions 😅

@leaanthony leaanthony merged commit e419822 into wailsapp:v3-alpha Jul 1, 2023
@leaanthony
Copy link
Member

I accidentally pushed some updates to your PR branch 😅 It's all good - we can merge.

@mmghv mmghv deleted the fix/default-contextmenu-disabled-inputs branch July 1, 2023 04:27
@coderabbitai coderabbitai bot mentioned this pull request Mar 11, 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