I'm trying to create a Brainfuck IDE with Electron JS. The text-editing part is a <textarea>
HTML element.
Right now, when I press Ctrl+Backspace the entire script gets deleted because of what is considered a "word".
How can I change the behavior of Ctrl+Backspace? Is it a Chrome thing, or a JS/Electron thing, or an HTML thing, or a CSS thing?
I would like for each of the 8 Brainfuck characters to be treated as a word. With this behavior, a script that looks like this:
>>><<<+++---...,,,[[[]]]
would be completely deleted in 8 strokes of Ctrl+Backspace. Each block of 3 of the same character is a "word".