AMBARI-6123. Issues with dialog keypresses.(xiwang)