Commit Graph

70 Commits

Author SHA1 Message Date
antelle 1f4f3101f2 fix #1335: removed the menubar on Windows and Linux 2019-11-04 21:36:14 +01:00
antelle 8c124f8980 fix #480: option to launch the app minimized 2019-10-06 13:14:12 +02:00
antelle 5a8927b547 fix #565: global shortcut to open KeeWeb 2019-10-06 12:27:18 +02:00
antelle cc9e369b6f fix #963: keyboard shortcut to copy OTP in background 2019-10-06 08:48:11 +02:00
antelle dcce37d99e fix #1273: untranslated menu items 2019-10-05 08:37:10 +02:00
antelle 9a8f595514 fix #1275: starting the app after closing on macOS 2019-09-29 10:34:47 +02:00
antelle 49b5b3d41e fixed desktop apps startup 2019-09-28 20:03:03 +02:00
antelle 42134b4888 fix a color flash on start 2019-09-28 13:43:30 +02:00
antelle bc8aad5062 fix #1256: error during updating the app 2019-09-20 20:35:05 +02:00
antelle a1a649cd9f electron events 2019-09-20 20:31:19 +02:00
antelle 56d84e1d18 fix #348: configurable system-wide shortcuts 2019-09-14 16:36:30 +02:00
antelle 7977bbf6e1 smooth window startup color transition for the dark theme 2019-09-08 15:11:41 +02:00
antelle 55f4ff8f73 eslint 2019-09-08 09:39:30 +02:00
antelle 6715c614ac fix titlebar color on macOS dark theme 2019-09-07 19:16:09 +02:00
antelle 105205661f fix #1232: removed an unwanted menubar on windows and linux 2019-08-19 20:10:58 +02:00
antelle fa4ff0b0c3 prettier 2019-08-18 08:05:38 +02:00
antelle 8ab1ec615f bugfixes for new Electron and webpack 2019-08-17 15:20:00 +02:00
antelle 84a23e4aea prettier 2019-08-16 23:05:39 +02:00
antelle ce5b0cb303 copy the cookies file if it's not possible to move it 2019-04-25 18:17:37 +02:00
antelle 31986b1d50 merge master 2019-02-09 21:49:23 +01:00
antelle ab0da3f49c focus issues fix 2019-02-09 12:11:32 +01:00
umlx5h 2f6996c1fb Add close window item to menu on Mac 2019-02-05 11:19:29 +09:00
antelle 20c651da41 Merge branch 'master' into develop 2019-01-13 17:28:43 +01:00
antelle 572be56d75 fixed second-instance unsubscription 2019-01-08 18:40:51 +01:00
antelle d9860935c1 fixed window activation when KeeWeb is launched second time 2019-01-08 18:39:38 +01:00
antelle 0c7210b177 fixed require(electron) 2019-01-07 22:04:39 +01:00
antelle ee94183e2a devtools mode 2019-01-07 20:43:14 +01:00
antelle bd9144628f fixed electron dev requests 2019-01-07 20:38:58 +01:00
antelle 090e75b6ed moveing files 2019-01-07 18:35:29 +01:00
antelle ae8e6e4bc8 fix #810: Google Drive cookies 2019-01-06 23:33:09 +01:00
antelle cf3a69d1e2 fix 1079: error launching another instance 2019-01-06 19:09:34 +01:00
antelle 567f349bb0 up electron 2019-01-06 14:45:50 +01:00
Coises 415eb11677 always-restore-to-a-connected-monitor
Issue #954: If a display is disconnected while KeeWeb is minimized,
when the window position is restored (either during the same session
or after quitting and restarting KeeWeb) it will typically be positioned
where the now disconnected display used to be, making it difficult
for the user to find the window and reposition it to a connected display.

This commit makes KeeWeb check whenever the window position is restored
to be sure there is enough of the title bar on some connected display
that the user can find and drag the window. If there is not, the window
is repositioned to the primary display.
2018-09-23 14:31:29 -07: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
Coises 1e036a3d58 Fix Issue #807 - single instance not enforced
We were checking for single instance too late.
It needs to be done before almost anything else happens.
2018-09-02 12:25:42 -07:00
Coises 8218f39192 Fix for Issue #877 - remove bad Origin header
When sending a PUT XMLHttpRequest Chromium includes the header
"Origin: file://".
This confuses some WebDAV clients, notably OwnCloud.
The header is invalid, so removing it everywhere it occurs
should do no harm.
2018-08-28 00:49:45 -07:00
Coises 3dae87853c Proper minimize to tray for Windows (and Linux?) 2018-08-15 15:41:08 -07:00
kasoban 55bb0fa1df Fixes #531: Window icon scaling error on win32 Electron app 2018-01-15 14:50:48 +01:00
antelle 0e148594fb mac menubar icon (wip) 2017-12-04 22:33:40 +01:00
antelle 9b30a17df0 fixed eslint 2017-12-04 19:32:06 +01:00
antelle a4d5963620 fix #731: option to open keyfile from command line 2017-12-03 20:31:54 +01:00
antelle 1557a9a92f removed unnecessary timeout 2017-12-03 09:03:56 +01:00
antelle 7c69c1305f fixed color flash on startup 2017-12-03 09:02:27 +01:00
antelle f82312b9d0 fixed white screen on startup 2017-12-03 01:04:16 +01:00
antelle 2aadc27db8 asar packaging 2017-12-02 20:38:13 +01:00
antelle d312f22b5a fixed escape order on openFile 2017-08-15 07:19:30 +02:00
antelle 6163fa4ba8 fix #422: lock on mac lock 2017-06-12 21:02:16 +02:00
antelle ac23f70bb5 fixed hang in new electron: return void 0 from events 2017-06-05 23:20:47 +02:00
antelle 2392329e93 fix window close 2017-06-05 17:14:41 +02:00
antelle ac00b77fc4 added a workaround for tray issue in ubuntu 2017-06-05 14:30:22 +02:00