GTK: Fix modifiers on macOS.
GTK: Fix modifiers on macOS.

This (conditionally) reapplies the workaround from
87b57377aedde7e161c30601c31bd6549fee0391 that was mistakenly removed.

jmercouris/NeXT,jmercouris/NeXT