Fixes deduplication of stuff
and fixes the deprecated warnings by changing the methods to use the new one.
Signed-off-by: Darren <git@darrennathanael.com>
Currently, there's only "Windows and "not Windows", which makes all non-Windows platforms behave like Mac (i.e., they have a meta key.). That's unfortunately not very true.
Instead, I'd suggest use the apple meta key on platforms that are known to be Mac and support CTRL+Enter on all other platforms (Linux, Unix, etc.)