angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

How to disable closing popover/tooltip when escape key pressed #6657

Closed fiftin closed 6 years ago

fiftin commented 6 years ago

I found hard coded listener for escape key event:

    function keypressListener(e) {
      if (e.which === 27) {
        var last = openedTooltips.top();
        if (last) {
          last.value.close();
          last = null;
        }
      }
    }

Is there a way to prevent closing popover/tooltip when escape key pressed?

Now I simply commented this listener in angular-ui source code because not found other solution.

icfantv commented 6 years ago

Closing this as this project is no longer being maintained, per the README and the ISSUE_TEMPLATE.

fiftin commented 6 years ago

May be anybody continuous his own branch? I can join to develop. This is very useful library. We use it in our product.