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

KryptonInputBox should return null instead of "" when user clicks the "X" button on the top right #262

Open
xiaoyuvax opened this issue Nov 1, 2024 · 0 comments

Comments

@xiaoyuvax
Copy link

KryptonInputBox should return null instead of "" when user clicks the "X"(close or cancel) button on the top right, so that user's intention of inputing empty string can be distiguished from clicking the "X" button

var input = KryptonInputBox.Show("prompt", "title", "defaultvalue");
if (input==null)
{
//user pressed the "X" button 
}
else if (input =="")
{
//user cleared the inputarea.
}
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

No branches or pull requests

1 participant