@progress/kendo-angular-dropdowns
Advanced tools
Comparing version 0.16.4 to 0.16.5
@@ -163,2 +163,3 @@ import '@telerik/kendo-theme-default/styles/packages/dropdowns'; | ||
private enterSubscription; | ||
private escSubscription; | ||
private openSubscribtion; | ||
@@ -165,0 +166,0 @@ private closeSubscription; |
@@ -321,2 +321,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
this.enterSubscription = this.navigationService.enter.subscribe(this.handleEnter.bind(this)); | ||
this.escSubscription = this.navigationService.esc.subscribe(this.handleBlur.bind(this)); | ||
}; | ||
@@ -333,2 +334,3 @@ ComboBoxComponent.prototype.unsubscribeEvents = function () { | ||
this.enterSubscription.unsubscribe(); | ||
this.escSubscription.unsubscribe(); | ||
}; | ||
@@ -335,0 +337,0 @@ ComboBoxComponent.prototype.handleItemChange = function (event) { |
@@ -447,3 +447,5 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
}); | ||
this.enterSubscription = this.navigationService.enter.subscribe(this.handleEnter.bind(this)); | ||
this.enterSubscription = this.navigationService.enter | ||
.merge(this.navigationService.esc) | ||
.subscribe(this.handleEnter.bind(this)); | ||
this.documentClick = Observable_1.Observable | ||
@@ -450,0 +452,0 @@ .fromEvent(document, 'click') |
@@ -10,3 +10,4 @@ /** | ||
Tab = 4, | ||
Navigate = 5, | ||
Esc = 5, | ||
Navigate = 6, | ||
} |
@@ -66,3 +66,4 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
NavigationAction[NavigationAction["Tab"] = 4] = "Tab"; | ||
NavigationAction[NavigationAction["Navigate"] = 5] = "Navigate"; | ||
NavigationAction[NavigationAction["Esc"] = 5] = "Esc"; | ||
NavigationAction[NavigationAction["Navigate"] = 6] = "Navigate"; | ||
})(exports.NavigationAction || (exports.NavigationAction = {})); | ||
@@ -69,0 +70,0 @@ var NavigationAction = exports.NavigationAction; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"NavigationAction":{"Undefined":0,"Open":1,"Close":2,"Enter":3,"Tab":4,"Navigate":5}}} | ||
{"__symbolic":"module","version":1,"metadata":{"NavigationAction":{"Undefined":0,"Open":1,"Close":2,"Enter":3,"Tab":4,"Esc":5,"Navigate":6}}} |
@@ -13,2 +13,3 @@ import { EventEmitter } from '@angular/core'; | ||
tab: EventEmitter<any>; | ||
esc: EventEmitter<any>; | ||
private useLeftRightArrows; | ||
@@ -15,0 +16,0 @@ constructor(config: NavigationConfig); |
@@ -120,2 +120,3 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
this.tab = new core_1.EventEmitter(); | ||
this.esc = new core_1.EventEmitter(); | ||
this.useLeftRightArrows = config.useLeftRightArrows; | ||
@@ -133,6 +134,8 @@ } | ||
} | ||
else if (keyCode === keys_1.Keys.enter || (keyCode === keys_1.Keys.esc)) { | ||
else if (keyCode === keys_1.Keys.enter) { | ||
action = navigation_action_1.NavigationAction.Enter; | ||
this.enter.emit(); | ||
} | ||
else if (keyCode === keys_1.Keys.esc) { | ||
action = navigation_action_1.NavigationAction.Esc; | ||
} | ||
else if (keyCode === keys_1.Keys.tab) { | ||
@@ -139,0 +142,0 @@ action = navigation_action_1.NavigationAction.Tab; |
@@ -117,3 +117,4 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
event.keyCode === keys_1.Keys.down || | ||
event.keyCode === keys_1.Keys.enter) { | ||
event.keyCode === keys_1.Keys.enter || | ||
event.keyCode === keys_1.Keys.esc) { | ||
event.preventDefault(); | ||
@@ -120,0 +121,0 @@ this.onNavigate.emit(event); |
{ | ||
"name": "@progress/kendo-angular-dropdowns", | ||
"description": "Dropdowns Package for Angular 2", | ||
"version": "0.16.4", | ||
"version": "0.16.5", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
677696
6096