Skip to content

Commit

Permalink
Merge pull request #1483 from michaelschattgen/fix/single-copy-reveal
Browse files Browse the repository at this point in the history
Prevent copying when revealing code
  • Loading branch information
alexbakker authored Sep 11, 2024
2 parents eb6e26a + 8c1cc9a commit 6cb5878
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,11 @@ public void onClick(View v) {
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;
}
}

Expand Down

0 comments on commit 6cb5878

Please sign in to comment.