mirror of https://github.com/keeweb/keeweb.git
allow password copy on mobile Safari
This commit is contained in:
parent
999101fac9
commit
c521dd27cc
|
@ -30,9 +30,8 @@ var FeatureDetector = {
|
|||
if (this.isWindows) { return 'Alt+PrintScreen'; }
|
||||
return '';
|
||||
},
|
||||
|
||||
shouldMoveHiddenInputToCopySource: function() {
|
||||
return this.isiOS;
|
||||
return this.isiOS && !/Version\/10/.test(navigator.userAgent);
|
||||
},
|
||||
canCopyReadonlyInput: function() {
|
||||
return !(/CriOS/i.test(navigator.userAgent));
|
||||
|
|
|
@ -11,6 +11,7 @@ var Tip = function(el, config) {
|
|||
this.tipEl = null;
|
||||
this.showTimeout = null;
|
||||
this.hideTimeout = null;
|
||||
this.force = config && config.force || false;
|
||||
this.hide = this.hide.bind(this);
|
||||
};
|
||||
|
||||
|
@ -27,7 +28,7 @@ Tip.prototype.init = function() {
|
|||
};
|
||||
|
||||
Tip.prototype.show = function() {
|
||||
if (!Tip.enabled) {
|
||||
if (!Tip.enabled && !this.force) {
|
||||
return;
|
||||
}
|
||||
Backbone.on('page-geometry', this.hide);
|
||||
|
|
|
@ -548,7 +548,7 @@ var DetailsView = Backbone.View.extend({
|
|||
: Locale.detFieldCopied;
|
||||
var tip;
|
||||
if (!this.isHidden()) {
|
||||
tip = new Tip(fieldLabel, {title: msg, placement: 'right', fast: true});
|
||||
tip = new Tip(fieldLabel, {title: msg, placement: 'right', fast: true, force: true});
|
||||
this.fieldCopyTip = tip;
|
||||
tip.show();
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
white-space: nowrap;
|
||||
z-index: $z-index-no-modal;
|
||||
pointer-events: none;
|
||||
animation: tip $tip-transition-in;
|
||||
@include nomobile { animation: tip $tip-transition-in; }
|
||||
@include common-dropdown;
|
||||
&.tip--fast, &.tip--fast:before, &.tip--fast:after {
|
||||
animation-duration: $base-duration;
|
||||
|
@ -19,7 +19,7 @@
|
|||
box-shadow: none;
|
||||
}
|
||||
&:before, &:after {
|
||||
animation: tip $tip-transition-in;
|
||||
@include nomobile { animation: tip $tip-transition-in; }
|
||||
content: " ";
|
||||
width: 0;
|
||||
height: 0;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.4.0 (WIP)
|
||||
`+` allow password copy on mobile Safari
|
||||
|
||||
##### v1.3.2 (2016-09-13)
|
||||
`-` fix #342: url detection in Microsoft Edge
|
||||
`-` fix #351: error alert on power shutdown
|
||||
|
@ -7,9 +10,6 @@ Release notes
|
|||
`-` fix #363: drag-drop in Firefox
|
||||
`-` fix #357: linux auto-type issues
|
||||
|
||||
##### v1.4.0 (WIP)
|
||||
`+` support auto-type in edge
|
||||
|
||||
##### v1.3.1 (2016-09-02)
|
||||
`-` fix #337: storage sync error
|
||||
|
||||
|
|
Loading…
Reference in New Issue