Skip to content

Commit

Permalink
add ctrl+a select all on debug log - re: #269
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Nov 15, 2024
1 parent 0f6d164 commit 1194e6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions renderer/renderJS/debug_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

/* global MA */

window.operations.receive('select:all', () => {
const selection = window.getSelection()
const range = document.createRange()
range.selectNodeContents(MA.byId('debug_log'))
selection.removeAllRanges()
selection.addRange(range)
})

// MARK: PAGE LOAD
window.addEventListener('DOMContentLoaded', () => {
window.state = new windowState()
Expand Down

0 comments on commit 1194e6b

Please sign in to comment.