1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-27 07:45:08 +02:00
Commit Graph

1869 Commits

Author SHA1 Message Date
antelle
4a070bbc57 Removed autocapitalization from WebDav fields, fix #1014 2018-10-11 22:52:11 +02:00
antelle
61ca037357
Merge pull request #995 from Coises/tray-min-auto-type-select-fix
tray-min-auto-type-select-fix
2018-09-05 20:44:24 +03:00
antelle
39da546129
Merge pull request #994 from Coises/details-overflow-adjust
Adjust some overflow behavior in the details panel, includes fixing Issue #945
2018-09-05 20:43:05 +03: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
2e54d30b9d Adjust some overflow behavior in the details panel
Adding max-width, white-space, overflow and text-overflow to "a" children
of .details_field-value elements corrects an anomaly with long Website
values. Previously they displayed wider than other values, and the space
in which one could click to edit the field without triggering the link
was very thin. This establishes what was presumably the intended behavior.

Removing white-space from .details__attachment-preview-download-text
allows the text to wrap when the details pane is too narrow to show it all
on one line.

Replacing margin-right with max-width in .details__history fixes
issue #945 and makes fields in the history wrap as they do
in the ordinary details pane.

Adding flex to .details_history-top prevents the history details from
overlapping the navigation controls when the window height is too small
to show everything without scrolling.

Adding padding-right and margin-right to .details__history-top and
.details__history-buttons keeps those elements from overlapping
the scroll bar and aligns their right edges with the right edges
of the widest .details_field-value elements.
2018-09-03 14:13:42 -07:00
antelle
c8995ad65f
Merge pull request #993 from Coises/single-instance-fix
Fix Issue #807 - single instance not enforced
2018-09-03 00:05:11 +03: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
antelle
9924dff39a removed old feature detecting stuff 2018-08-30 22:21:57 +02:00
antelle
1054cdcfc4 Testing features on start 2018-08-30 22:16:31 +02:00
antelle
0405ba0321 Reverted https warning back 2018-08-30 21:38:52 +02:00
antelle
c8dc0aefa0 removed debug code 2018-08-30 21:33:07 +02:00
antelle
e889f5f5ba Require https on start: some browser APIs are not available when the app is loaded via HTTP, it's better to fail fast. 2018-08-30 21:32:37 +02:00
antelle
23477e1d2f release notes 2018-08-30 21:23:44 +02:00
antelle
e344bc993e improved messages 2018-08-30 21:22:17 +02:00
antelle
d0c556263a Merge branch 'sahalsaad-develop' into develop 2018-08-30 21:21:57 +02:00
antelle
3f3ba4d34b saving cookies during ajax requests, this could fix #810 2018-08-30 21:13:40 +02:00
Coises
8f379a1d55 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-30 21:13:40 +02:00
sahal.sahal
00d12b96db #646 Change confirm password message. 2018-08-31 02:31:39 +08:00
sahal.sahal
dbbf759aaa #646 Fix switch to another tab bug. 2018-08-31 01:26:16 +08:00
sahal.sahal
50b7df3c45 #646 Update confirm password ux. 2018-08-29 07:10:54 +08:00
antelle
62efa587cb saving cookies during ajax requests, this could fix #810 2018-08-28 23:43:25 +02:00
antelle
1d72600e05
Merge pull request #990 from Coises/remove-bad-origin-header
Fix for Issue #877 - remove bad Origin header
2018-08-28 19:53:54 +02: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
sahal.sahal
3e55478f4b #646 Implement confirm master password 2018-08-28 00:15:23 +08:00
antelle
91f08b0853 Merge branch 'Coises-draggable-field-labels' into develop 2018-08-24 20:52:41 +02:00
Coises
0f1a248fcc Make field labels in details view draggable
These changes make it possible to drag the value of a field in the
details view by dragging its label. The value dragged is the same
as would be copied by clicking on the label.
2018-08-23 13:45:35 -07:00
Coises
2450e3a0b6 Avoid spurious drop-target indications
While app-view already prevented the default action for files and urls
in a browser window (navigation), the drag indicator showed that any
drop was possible. These changes cause the drag indicator to show that
nothing can be dropped on areas of the interface that don't contain
a drop target. The addition of dragenter avoids some flickering which
otherwise can occur when dragging a file rapidly across the group
or entry lists.

Accompanying changes to details-view, menu-item-view and open-view are
needed because those views relied on "inheriting" from app-view
the indication that dropping anything was allowed.
2018-08-23 13:45:35 -07:00
Coises
7a3cc9c863 Only show drop files message in details view when dragging a file
In testing, making labels draggable resulted in a lot of annoying,
flashing indications of drop targets in places where text cannot
be dropped. This change causes the details view to show the message
panel indicating that a file can be dropped only when the drag contains
a file.
2018-08-23 13:45:35 -07:00
antelle
150f258b70 fixed a group moving bug 2018-08-23 22:14:44 +02:00
antelle
797bc4820b fix #984: wrong group placement when moving groups inside one subgroups below itself 2018-08-23 22:13:02 +02:00
antelle
d95ccdf01a Revert "fix #432: drag-drop in vivaldi": the Vivaldi hack is no longer required, see keeweb/keeweb#983
This reverts commit 60e59da94d.

# Conflicts:
#	app/scripts/comp/drag-drop-info.js
#	app/scripts/views/menu/menu-item-view.js
#	release-notes.md
2018-08-23 19:05:49 +02:00
antelle
3a398a9a26
Merge pull request #979 from Coises/tray-min-alt-tab-fix
Proper minimize to tray for Windows (and Linux?)
2018-08-19 19:00:50 +02:00
Coises
3dae87853c Proper minimize to tray for Windows (and Linux?) 2018-08-15 15:41:08 -07:00
antelle
94bda624d4 Merge branch 'andredasilvapinto-perf' into develop 2018-08-15 19:23:32 +02:00
André Pinto
f45de3e759 Improve GroupModel.setGroup performance 2018-08-12 23:37:47 +01:00
antelle
3b91dccb9d
Merge pull request #950 from bahamas10/dave-1530205288
sign-html task can hang if it fails with --force
2018-06-28 19:27:45 +02:00
Dave Eddy
86404544f3 sign-html task can hang if it fails with --force 2018-06-28 13:14:51 -04:00
antelle
204965a693 fix after merge 2018-06-21 19:38:06 +02:00
antelle
10a0aa75f0 Merge branch 'twang2218-remove-bower' into develop 2018-06-21 19:22:22 +02:00
Tao Wang
c13eb67999 Add yarn.lock
Signed-off-by: Tao Wang <twang2218@gmail.com>
2018-06-21 15:20:07 +10:00
Tao Wang
48fcdd7a6c Replace the bower dependencies with NPM dependencies
Signed-off-by: Tao Wang <twang2218@gmail.com>
2018-06-21 15:11:03 +10:00
antelle
b121958686 Merge branch 'cyosp-bugfix/FileSaver.js' into develop 2018-05-13 15:13:18 +02:00
CYOSP
6d93a57bc3 Force FileSaver.js version to 1.3.3 2018-05-13 14:42:43 +02:00
antelle
091de3e4e0 fix #896: increased wasm timeout 2018-04-02 08:32:27 +02:00
antelle
a4a878c30b fix #893: log levels 2018-03-24 21:17:20 +01:00
antelle
26d6844b65 travis 2018-03-18 19:01:59 +01:00
antelle
7504393e67 travis 2018-03-18 19:01:34 +01:00
antelle
b95469330f travis config 2018-03-18 18:56:47 +01:00
antelle
1fefaf91af don't send Authorization header to OneDrive 2018-03-13 19:17:16 +01:00
antelle
bd5f8afe99 using 'me' in OneDrive API 2018-03-13 19:11:18 +01:00