Roo/bootstrap/Modal.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Dec 2020 03:37:04 +0000 (11:37 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Dec 2020 03:37:04 +0000 (11:37 +0800)
Roo/bootstrap/Modal.js

index 7d133c6..ee201ee 100644 (file)
@@ -300,8 +300,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
             this.headerEditEl =  this.headerEl.select('.form-control',true).first();
             this.headerEl.on('click', function() { this.toggleHeaderInput(true) } , this);
             this.headerEditEl.on('keyup', function(e) {
-                    if(e.isNavKeyPress()){
-                            this.toggleHeaderInput(false)
+                    if([  e.RETURN , e.TAB , e.ESC ].indexOf(e.keyCode) > -1) {
+                        this.toggleHeaderInput(false)
                     }
                 }, this);
             this.headerEditEl.on('blur', function(e) {