Confirm/Cancel buttons in promptcommand

Actually, you know which button is pressed. The input value is only returned with “Confirm”, otherwise the value is “null”

  • Cancel button => returned value = “null”
  • X icon => returned value = “null”
  • Confirm button => input value