Merge pull request #1483 from michaelschattgen/fix/single-copy-reveal

Prevent copying when revealing code
pull/1490/head
Alexander Bakker 1 year ago committed by GitHub
commit 6cb58789a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -556,11 +556,11 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
if (_highlightEntry || _tempHighlightEntry || _tapToReveal) {
if (_focusedEntry == entry) {
resetFocus();
// Prevent copying when singletap is set and focus is reset
handled = _copyBehavior == CopyBehavior.SINGLETAP;
} else {
focusEntry(entry, _tapToRevealTime);
// Prevent copying when singletap is set and the entry is being revealed
handled = _copyBehavior == CopyBehavior.SINGLETAP && _tapToReveal;
}
}

Loading…
Cancel
Save