mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 13:55:07 +00:00
Mousetrap 1.4 introduced a generic mod helper which lets you set cross platform shortcuts. Mousetrap.bind('mod+p', _print); On Mac this ends up mapping to command+p whereas on Windows and Linux it maps to ctrl+p. This differs from defining ctrl+p and command+p because both ctrl+p and command+p will trigger print on Mac whereas with the mod helper only command+p will.