I think a confirm box needs to be added, I also by mistake sold a shield this morning because I pressed the wrong button to equip it, lol.
I saw this comment earlier today and wanted to throw it out there to see if anyone else has had similar problems accidentally selling something they didn't want to.