Commit 39f5f461 authored by Oleg Korshul's avatar Oleg Korshul

dispatch event modifiers

parent 4c7085bb
......@@ -702,6 +702,30 @@
return this.keyCodeVal;
}
});
Object.defineProperty(oEvent, 'shiftKey', {
get : function()
{
return this.shiftKeyVal;
}
});
Object.defineProperty(oEvent, 'altKey', {
get : function()
{
return this.altKeyVal;
}
});
Object.defineProperty(oEvent, 'metaKey', {
get : function()
{
return this.metaKeyVal;
}
});
Object.defineProperty(oEvent, 'ctrlKey', {
get : function()
{
return this.ctrlKeyVal;
}
});
if (AscCommon.AscBrowser.isIE)
{
......@@ -721,6 +745,10 @@
}
oEvent.keyCodeVal = k;
oEvent.shiftKeyVal = e.shiftKey;
oEvent.altKeyVal = e.altKey;
oEvent.metaKeyVal = e.metaKey;
oEvent.ctrlKeyVal = e.ctrlKey;
var _elem = _getElementKeyboardDown(this.nativeFocusElement, 3);
_elem.dispatchEvent(oEvent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment