mirror of https://github.com/keeweb/keeweb
Merge branch 'master' into develop
commit
f0530e2270
|
@ -6,14 +6,18 @@ const FocusDetector = {
|
|||
init() {
|
||||
this.isFocused = true;
|
||||
this.detectsFocusWithEvents = !FeatureDetector.isDesktop && !FeatureDetector.isMobile;
|
||||
window.onfocus = () => {
|
||||
this.isFocused = true;
|
||||
Backbone.trigger('focus');
|
||||
};
|
||||
window.onblur = () => {
|
||||
this.isFocused = false;
|
||||
Backbone.trigger('blur');
|
||||
};
|
||||
window.addEventListener('focus', () => {
|
||||
if (!FocusDetector.isFocused) {
|
||||
FocusDetector.isFocused = true;
|
||||
Backbone.trigger('focus');
|
||||
}
|
||||
});
|
||||
window.addEventListener('blur', () => {
|
||||
if (FocusDetector.isFocused) {
|
||||
FocusDetector.isFocused = false;
|
||||
Backbone.trigger('blur');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
hasFocus() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "KeeWeb",
|
||||
"version": "1.7.5",
|
||||
"version": "1.7.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "KeeWeb",
|
||||
"version": "1.7.5",
|
||||
"version": "1.7.6",
|
||||
"description": "Free cross-platform password manager compatible with KeePass",
|
||||
"main": "main.js",
|
||||
"homepage": "https://keeweb.info",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "keeweb",
|
||||
"version": "1.7.5",
|
||||
"version": "1.7.6",
|
||||
"description": "Free cross-platform password manager compatible with KeePass",
|
||||
"main": "Gruntfile.js",
|
||||
"private": true,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.7.6 (2019-02-07)
|
||||
`-` fixed focus issues in desktop apps
|
||||
|
||||
##### v1.7.5 (2019-02-04)
|
||||
`-` fix #1096: focus issues after minimizing
|
||||
`-` fix #1094: plugin installation in MS Edge
|
||||
|
|
Loading…
Reference in New Issue