DDMsgReader: Ctrl-C is now supported for message searches to abort the search.
1 unresolved thread
DDMsgReader: Ctrl-C is now supported for message searches to abort the search. A new configurable string was added for this situation: msgSearchAbortedText
Merge request reports
Activity
added 1 commit
- 18fc2c3c - New text string for aborted message search in DefaultTheme.cfg
mentioned in commit 53d7c053
1934 1938 // Now using the can_read property. 1935 1939 for (var subCodeIdx = 0; (subCodeIdx < subBoardsToScan.length) && continueScan; ++subCodeIdx) 1936 1940 { 1941 // Briefly see if there's any input from the console to be received, and The proper way to check for user aborting about (e.g. hitting Ctrl-C) is to check the
console.aborted
property.The only reason this wouldn't work for your script is because you're putting 'C' (CTRL-C) in the ctrl-key passthrough list. Do you have another use for the Ctrl-C key? If not, then I would recommend letting Synchronet handle Ctrl-C input and use
console.aborted
to see if/when a user has aborted.
Please register or sign in to reply