From 633cf63682303209fda7a37dbcc89ac9943525fe Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 10 Jun 2015 19:41:20 +0200 Subject: [PATCH] fix: compare strings with StringWrapper.equals Fixes https://github.com/angular/angular/issues/2458 --- modules/angular2/src/render/dom/events/key_events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/render/dom/events/key_events.ts b/modules/angular2/src/render/dom/events/key_events.ts index 20707c90f2..a6412fe332 100644 --- a/modules/angular2/src/render/dom/events/key_events.ts +++ b/modules/angular2/src/render/dom/events/key_events.ts @@ -91,7 +91,7 @@ export class KeyEventsPlugin extends EventManagerPlugin { static eventCallback(element, shouldSupportBubble, fullKey, handler, zone) { return (event) => { var correctElement = shouldSupportBubble || event.target === element; - if (correctElement && KeyEventsPlugin.getEventFullKey(event) === fullKey) { + if (correctElement && StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event), fullKey)) { zone.run(() => handler(event)); } };