Delete key stopped working in Xcode editor

Xcode 11.3.1 on Mojave. Everything was fine until about half an hour ago when the delete key on my keyboard suddenly stopped working. It works in other apps, just not Xcode. It's the built-in keyboard on the MBP. Tried quitting and restarting Xcode, rebooting the Mac. It's really bizarre. When I hit delete, nothing happens, but then I will get a mesage that there is an invalid character in source file. If I click that, it offers to replace '' wtih ' '.


I copied the text into BBEdit and looked at it, and it appears it's inserting ASCII 0x08, which is backspace. Cmd-delete will delete the line, and option-delete will delete the word.


It's really hard to code with no delete key!

Accepted Reply

Did you look at XCode Preferences > Key bindings ?

Maybe (for some unknown reason) something was assigned to this backspace key ?

Replies

Did you look at XCode Preferences > Key bindings ?

Maybe (for some unknown reason) something was assigned to this backspace key ?

How many cats do you share that space with?

Egad!! That was 100% it. I don't know what I had done, but yeah several things were mapped to backspace. Very strange. I created a new Default keymap binding and all is well now. Thanks!