mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Release fixes
This commit is contained in:
parent
5e31c01344
commit
9a98bff931
30 changed files with 143 additions and 76 deletions
27
dev/External/ko.js
vendored
27
dev/External/ko.js
vendored
|
|
@ -315,18 +315,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.keypress = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor, oViewModel) {
|
||||
$(oElement).on('keypress.koKeyPress', function (oEvent) {
|
||||
fValueAccessor().call(oViewModel, oEvent);
|
||||
});
|
||||
|
||||
ko.utils.domNodeDisposal.addDisposeCallback(oElement, function () {
|
||||
$(oElement).off('keypress.koKeyPress');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.onEnter = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor, oViewModel) {
|
||||
$(oElement).on('keypress.koOnEnter', function (oEvent) {
|
||||
|
|
@ -343,6 +331,21 @@
|
|||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.onSpace = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor, oViewModel) {
|
||||
$(oElement).on('keyup.koOnSpace', function (oEvent) {
|
||||
if (oEvent && 32 === window.parseInt(oEvent.keyCode, 10))
|
||||
{
|
||||
fValueAccessor().call(oViewModel, oEvent);
|
||||
}
|
||||
});
|
||||
|
||||
ko.utils.domNodeDisposal.addDisposeCallback(oElement, function () {
|
||||
$(oElement).off('keyup.koOnSpace');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.onTab = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor, oViewModel) {
|
||||
$(oElement).on('keydown.koOnTab', function (oEvent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue