WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@xiaoyuvax

Description

@xiaoyuvax

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.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions