Why are you disabling selectable
? Selecting and then using backspace/delete is the straightforward way of deleting such leaf nodes.
I suspect the focus issue is a result of A) none of the commands bound to backspace applying in the situation where the cursor is after the node and B) the browser’s default behavior being buggy (browsers are pretty terrible with native editing behavior around uneditable nodes) and just giving up, unfocusing the editor.