Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / contextual / js / views / KeyboardView.js
1 /**
2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
5 * @preserve
6 **/
7
8 (function (Drupal, Backbone) {
9   Drupal.contextual.KeyboardView = Backbone.View.extend({
10     events: {
11       'focus .trigger': 'focus',
12       'focus .contextual-links a': 'focus',
13       'blur .trigger': function blurTrigger() {
14         this.model.blur();
15       },
16       'blur .contextual-links a': function blurContextualLinksA() {
17         var that = this;
18         this.timer = window.setTimeout(function () {
19           that.model.close().blur();
20         }, 150);
21       }
22     },
23
24     initialize: function initialize() {
25       this.timer = NaN;
26     },
27     focus: function focus() {
28       window.clearTimeout(this.timer);
29       this.model.focus();
30     }
31   });
32 })(Drupal, Backbone);