OpenPgp: small improvements

This commit is contained in:
RainLoop Team 2015-09-01 22:50:30 +03:00
parent fc827326c4
commit d6d19c99bf
6 changed files with 28 additions and 13 deletions

View file

@ -6,7 +6,9 @@
var
_ = require('_'),
ko = require('ko'),
key = require('key'),
Enums = require('Common/Enums'),
Utils = require('Common/Utils'),
kn = require('Knoin/Knoin'),
@ -24,6 +26,8 @@
this.key = ko.observable('');
this.keyDom = ko.observable(null);
this.sDefaultKeyScope = Enums.KeyState.PopupViewOpenPGP;
kn.constructorEnd(this);
}
@ -54,6 +58,14 @@
}
};
ViewOpenPgpKeyPopupView.prototype.onBuild = function ()
{
key('ctrl+a, command+a', Enums.KeyState.PopupViewOpenPGP, _.bind(function () {
this.selectKey();
return false;
}, this));
};
module.exports = ViewOpenPgpKeyPopupView;
}());