mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-10 01:47:03 +03:00
OpenPgp: small improvements
This commit is contained in:
parent
fc827326c4
commit
d6d19c99bf
6 changed files with 28 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue