Why does Hot key for Showing Current Display State needs to be pressed twice?

Why does Hot key for Showing Current Display State needs to be pressed twice?

I have the "D" button assigned to show the current display state but when I press it the first time, I just get a faint preview of what's about to be shown, then it goes away.

Then I press the hotkey a second time, and this time it works as expected.

Any thoughts on how to avoid this?

Thanks,

Mark

SolidworksGeneral