Commit Graph

38 Commits

Author SHA1 Message Date
antelle ba29687865 fix #1234 auto-type issues in xubuntu/xfce 2019-08-22 22:15:04 +02:00
antelle 2c38f3c8f2 fix #1234: auto-type not working on linux 2019-08-19 20:55:25 +02:00
antelle f8395f7f38 better eslint 2019-08-18 10:17:09 +02:00
antelle 84a23e4aea prettier 2019-08-16 23:05:39 +02:00
antelle 3012d1b4e1 fixed auto-type window on mac 2019-03-31 14:30:36 +02:00
Kevin McCormack 36bb2ff175 Update Launcher.showMainWindow
Fixes #1095
2019-03-15 09:19:25 -04:00
antelle f18d053cbf
Merge pull request #674 from alex-shpak/cordova
Cordova specific file system and fingerprint fixes.
2019-01-10 18:48:49 +01:00
Alex Shpak adeb58bd6b Fix clipboard for cordova to use existing hidden input 2019-01-09 21:17:20 +01:00
antelle ee94183e2a devtools mode 2019-01-07 20:43:14 +01:00
antelle 51bc308fa8 fix #1078: updater hanged on "extracting files" 2019-01-06 19:20:56 +01:00
antelle 91a15c4b5e upgraded modules, fixed argon2 2019-01-06 11:44:10 +01:00
Coises d2446cd0e1 tray-min-auto-type-select-fix
The fix for alt-tab behavior when KeeWeb is minimized to the tray
in 3dae878 left a problem when auto-type raises a selection list: the
taskbar button shows, and after a selection is made KeeWeb minimizes
to the taskbar but leaves a tray icon present. The same thing happens
if auto-type is canceled by clicking either the minimize button or the
close button at the top right of the selection window. From this state,
various scenarios lead to having duplicate tray icons.

This commit restores the behavior of 1.6.3 when auto-type raises
a selection list while KeeWeb is minimized to the tray: the selection
window shows, the tray icon stays, and no taskbar button shows.

We used to minimize the window after selection regardless of its
previous state; this worked because we hid the taskbar button and
minimized the window when minimizing to the tray, but that's what caused
the alt-tab problem. Since we now hide when minimizing to the tray,
we have to know whether to minimize or hide after selection.

The simplest way to do that is to keep the old behavior of leaving the
tray icon present when auto-type raises a selection window while KeeWeb
is minimized to the tray. Instead of calling minimize on the main
window, launcher-electron.js now calls app.minimizeThenHideIfInTray
which is defined in desktop/app.js. That routine minimizes KeeWeb (which
returns focus to the previously active window) and then hides the main
window if and only if a tray icon is present. Because we don't want a
tray icon and a taskbar button present at the same time, app.minimizeApp
is also changed to restore the call to mainWindow.setSkipTaskbar(true)
in the non-Darwin path; thus, when auto-type raises a selection window,
there won't be a taskbar button if KeeWeb was minimized to the tray.

If auto-type is canceled by clicking the top right close button while a
selection list is displayed and there is a tray icon, the KeeWeb window
is hidden and the tray icon stays, just as one would expect. This is
the most likely way someone using "Minimize app instead of close" would
choose to dismiss the auto-type selection list.

If auto-type is canceled when a selection list is displayed while there
is a tray icon by clicking the top right minimize button, by using
alt-tab, or by clicking outside the selection window, the KeeWeb window
reverts to its normal display and shows in the alt-tab list, but the
tray icon remains and no taskbar button is shown. This is not ideal;
it could be addressed in another commit if it seems worth doing. This
commit mitigates these scenarios by adding a check to app.minimizeApp
to assure that we never create a second tray icon if one is already
present. This can do no harm and might catch other "corner cases" that
are difficult to foresee. The next time the tray icon is clicked or
the app is minimized to the tray by clicking the top right close button
normal behavior is fully restored.

If I've made no mistakes, the only change to the Darwin path is that it,
too, is subject to the check that a new tray icon is not created if one
already exists. I'm guessing that's OK, but I have no way to test
Darwin.
2018-09-04 20:34:11 -07:00
antelle 334e439f94 fixed storage providers authentication in desktop apps 2017-12-09 12:22:33 +01:00
antelle a4d5963620 fix #731: option to open keyfile from command line 2017-12-03 20:31:54 +01:00
antelle 2aadc27db8 asar packaging 2017-12-02 20:38:13 +01:00
antelle 569c44f78c hide unsupported option 2017-06-12 21:07:09 +02:00
antelle f4d5e51983 override userData path for desktop 2017-06-05 13:33:12 +02:00
antelle 04f2548a22 Merge branch 'alex-shpak-cordova' into develop 2017-04-14 23:22:33 +02:00
Alex Shpak 945a902071 Fixed some PR comments 2017-04-12 00:06:44 +02:00
Alex Shpak 12603ff2ab Removing duplicate joinPath 2017-04-11 01:34:59 +02:00
Alex Shpak ad246ba180 Fixed aligned launcher methods 2017-04-11 01:03:31 +02:00
Alex Shpak 0e2b1386ec Implementing mkdir and other improvements 2017-04-11 01:03:31 +02:00
lawrencium fe7ccf93d6 have statFileSync() return something since the caller checks the file stats 2017-04-08 16:10:53 -07:00
antelle 782488f8fa removed 'use script' 2017-04-08 18:31:38 +02:00
antelle 70cbcb5c36 desktop plugins 2017-04-08 17:34:27 +02:00
antelle a102a5877c fixed callback consistency in mdkir 2017-02-21 19:44:45 +01:00
antelle adcf3c5377 Merge branch 'alex-shpak-develop' into develop 2017-02-20 23:39:13 +01:00
Alex Shpak cd2f53b525 Fixed callbacks in mkdir and initFs 2017-02-11 23:59:26 +01:00
Alex Shpak 0ea8b00cd7 Fixed electron ready method. wait for jQuery 2017-02-06 01:23:45 +01:00
Alex Shpak f127be3799 Implementing async mkdir 2017-02-05 23:34:37 +01:00
Alex Shpak cba2fddfa6 Fixed launcher to have ready method 2017-02-05 15:19:45 +01:00
Alex Shpak db701754b0 Move launcher to launcher-electron 2017-02-05 15:15:24 +01:00
antelle b8c400185b some bugfixes 2017-02-05 11:08:26 +01:00
Alex Shpak ab243dda4d Fixed eslint 2017-02-03 00:48:20 +01:00
Alex Shpak 017c03a4e0 Fix formatting 2017-02-01 10:28:14 +01:00
Alex Shpak b8f027dad4 Change launcher to callbacks style 2017-02-01 02:37:43 +01:00
Alex Shpak 220f058885 Merge remote-tracking branch 'upstream/develop' into develop
# Conflicts:
#	app/scripts/app.js
#	app/scripts/auto-type/auto-type-emitter-factory.js
#	app/scripts/auto-type/auto-type-helper-factory.js
#	app/scripts/comp/launcher.js
2017-01-31 23:40:48 +01:00
Alex Shpak 5624c5472a Refactor app and launcher to support cordova apps 2017-01-31 23:09:35 +01:00