Sorry if this has already been addressed/fixed elsewhere.
After accidentally deleting a valuable wikiword 3 times in the same way, I decided to fix my problem. It happens that I sometimes hit "crtl+D" by accident, either wanting to hit "ctrl+F" or "ctrl+C". I am then faced with the message "Are you sure ...?", to which I sometimes instinctively try to cancel by hitting the "ESC" key in my keyboard, causing the wiki word to be deleted.
To fix that, I changed line 4486 in lib/pwiki/PersonalWikiFrame.py, from "if result == wx.NO:" to "if result != wx.YES:". I paste the block below to make it easier to locate, in case you want to incorporate this fix in the main branch (supposing it's not there yet):
if self.getConfig().getboolean("main", "trashcan_askOnDelete", True):
result = wx.MessageBox(
_(u"Are you sure you want to delete wiki word '%s'?") %
wikiWord, _(u'Delete Wiki Word'),
wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION, self)
if result != wx.YES: #### MODIFIED LINE <========
return
try:
self.saveAllDocPages()
self.deleteWikiWord(wikiWord)
except (IOError, OSError, DbAccessError), e:
self.lostAccess(e)
raise
except WikiDataException, e:
self.displayErrorMessage(unicode(e))
Thanks,
Mauricio