Just a little PSA, since I did not know this was a thing till I did it on accident. With an object selected in object mode. If you hit D + R/G. It allows you to rotate or move the origin. I had no idea this was added/ a thing. Super cool and useful for local transforms! Edit: This is a Free Addon
That's not part of the default keymap for windows and Linux. Maybe you hit ctrl+period by accident which switches to use origin transform mode.
I just went and tested it. I wish i had screen recording. Select an object in object mode HOLD D then hit G or R.
You may have an addon that has added that option, but vanilla Blender doesn't have that keymap. I just doubled checked with is key free addon which also includes Mac's hotkeys. You can test this quickly be clicking file->default->load factory startup. The try it.
You guys are indeed correct loaded default and it does not have it. It must be an addon because I prefer default keymap settings for blender. Edit: It is the key Ops toolkit "Maya D"
I apologize for the misinformation. This was just SO incredibly useful I got excited haha. If necessary I can remove the thread.