Skip to content

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

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