Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263027

[macos] Ctrl-C Paste does not work in FileDialog

XMLWordPrintable

    • x86_64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      Mac OS Big Sur / Java 15

      A DESCRIPTION OF THE PROBLEM :
      I use a java.awt.FileDialog on Mac OS to show a native file chooser. Using Ctrl-V in the quick find field does not work to paste content, I need to right click and choose "Paste" from the contextual menu

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Show an awt FileDialog on Mac OS, Ctrl-V to paste content in its quick find filter

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The Ctrl-V should paste text in the quick find filter
      ACTUAL -
      The Ctrl-V does not paste text in the quick find filter

      ---------- BEGIN SOURCE ----------
      public class ABC {
        public static void main(String[] args) {
          FileDialog dlg = new FileDialog(new JDialog());
          dlg.setVisible(true);
        }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Right click in the quick find filter and select Paste from the contextual menu

      FREQUENCY : always


            skodandarama Suman Rajkumaar Kodandarama (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: