fix keyutil
This commit is contained in:
parent
c2c2fa3448
commit
e6b3ed5ac9
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ For more information about SproutCore, visit http://www.sproutcore.com
|
||||||
|
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
|
|
||||||
var dom = require('pilot/dom');
|
var event = require('pilot/event');
|
||||||
var useragent = require('pilot/useragent');
|
var useragent = require('pilot/useragent');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -215,7 +215,7 @@ exports.addKeyDownListener = function(element, boundFunction) {
|
||||||
var handled = boundFunction(ev);
|
var handled = boundFunction(ev);
|
||||||
// If the boundFunction returned true, then stop the event.
|
// If the boundFunction returned true, then stop the event.
|
||||||
if (handled) {
|
if (handled) {
|
||||||
dom.stopEvent(ev);
|
event.stopEvent(ev);
|
||||||
}
|
}
|
||||||
return handled;
|
return handled;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue