Skip to content

Conversation

@skvrnami
Copy link
Contributor

No description provided.

@skvrnami skvrnami requested a review from hlageek October 20, 2025 18:31
// Function to send calculated positions to Shiny
$( document ).ready(function() {
document.addEventListener('mouseup', updateSelection);
document.addEventListener('keyup', updateSelection);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyup tady není moc dobrej, volá tu funkci furt, i když třeba píšeš jméno kódu v jiným tabu
asi něco jako $('#document_code_ui_1-focal_text').on('mouseup keyup touchend', updateSelection); bude lepší?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hlageek check it out now

@hlageek
Copy link
Contributor

hlageek commented Oct 29, 2025

@skvrnami how about now?
(I made a few tweaks to your original solution, rather than the overly complicated second attempt)

@skvrnami
Copy link
Contributor Author

skvrnami commented Nov 9, 2025

@hlageek looks good!

@hlageek hlageek merged commit b36e6e3 into main Nov 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants