Inventor(s)

Abstract

In a push-to-talk dictation app, two quick taps on the dictation key remove the text that the last dictation inserted into another application, by sending one Backspace per character. A tap is a press shorter than 0.30 seconds, the second tap must start within 0.45 seconds of the end of the first, and a third tap starts over, so a hold used for speaking is never a tap. Because Backspace deletes whatever lies left of the cursor, undo runs only if the same application or window is still in front, no key has been pressed and no mouse button clicked since the insertion, the insertion is at most 30 seconds old, the count is at most 2,000, and that dictation has not been undone already. On macOS the no-input check reads the system's hardware idle counters for key-down and mouse-down events. These ignore modifier-only changes, so the taps do not reset them and no listener is needed. On Windows, two listeners that run only while the option is on record the last real key press and click, ignoring injected events and modifiers. The count uses Unicode NFC form, and Backspaces are sent with modifier flags cleared.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.

Share

COinS