I can't tell you for sure, but I've seen this behavior with other programs,
perhaps it's a behavior related to GTK+, which for me, is a quick way to set
shortcuts, however, it can annoy the user depending on which key you set the
shortcut (in this case, it's set to the letter D).
To remove a shortcut, go to the specific window which has the shortcut (in
this case, the chat windows of Pidgin), in the menu bar of the window, try to
find the function which has the shortcut set (in this case, since I don't use
the English version of Pidgin, I'll give it a try: It should be at Options >
Record history), remember, it is in the chat window.
Once you find the function with the shortcut, highlight it and press Delete,
the shortcut should disappear.
The same process can be used to create shortcuts, but instead of pressing
Delete, one needs to press the desired keyboard keys or key combinations.
Best regards, ADFENO.
Have a nice day.