Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@CorneliusRoemer that example depends on someone adding a semicolon to the comment, but I agree with the sentiment completely. I often start writing out a long command, realize I need an extra detail, comment the whole line and execute. Then it's in my history to come back to when I've got the rest of the info. Not having interactive_comments set would indeed be dangerous.
The answer about the Radeon driver below may be correct. I don't believe this is dock specific because I'm hitting this exact same problem with a Kensington dock. The forum thread below also mentions CalDigit and Belkin docks.
Just a note, if you want this to work properly, make sure you save the apple script as an application, not a script. If saved as a script, the media keys will just open the script editor.