@@ -0,0 +1,1229 @@
+package com.siyeh.ig.ui;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.KeyEvent;%0A%0Apublic class FormattedTextFieldMacFix%7B%0A    private FormattedTextFieldMacFix()%7B%0A        super();%0A    %7D%0A%0A    public static void apply( JFormattedTextField field)%0A    %7B%0A        if(isMacOs()) %7B%0A            final Toolkit toolkit = Toolkit.getDefaultToolkit();%0A            final int commandKeyMask = toolkit.getMenuShortcutKeyMask();%0A            final InputMap inputMap = field.getInputMap();%0A            final KeyStroke copyKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, commandKeyMask);%0A            inputMap.put(copyKeyStroke, %22copy-to-clipboard%22);%0A            final KeyStroke pasteKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_V, commandKeyMask);%0A            inputMap.put(pasteKeyStroke, %22paste-from-clipboard%22);%0A            final KeyStroke cutKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_X, commandKeyMask);%0A            inputMap.put(cutKeyStroke, %22cut-to-clipboard%22);%0A        %7D%0A    %7D%0A%0A    private static boolean isMacOs()%7B%0A        final String osName = System.getProperty(%22os.name%22).toLowerCase();%0A        if(osName == null)%0A        %7B%0A            return false;%0A        %7D%0A        return osName.startsWith(%22mac os x%22);%0A    %7D%0A%7D%0A

Fix for IDEADEV-949