Bug 494356 - Copying/Pasting is broken on Save As... file name input field on macOS
Summary: Copying/Pasting is broken on Save As... file name input field on macOS
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: Git
Platform: macOS (DMG) macOS
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-09 16:41 UTC by SprawlsSoupier
Modified: 2025-02-01 18:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SprawlsSoupier 2024-10-09 16:41:53 UTC
SUMMARY
In the Save As... dialog, copying/pasting is broken. Copying/Pasting would focus on the editor instead of the file name input field—although that is focused.

STEPS TO REPRODUCE
1. File --> Save As...
2. Focus on the file name input field (automatic.)
3. Attempt to copy/paste on it.

OBSERVED RESULT
Copying/Pasting is on the editor.

EXPECTED RESULT
Copying/Pasting is in the file name input field.

SOFTWARE/OS VERSIONS
macOS: 15.0 (and 14.X too)
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Comment 1 Waqar Ahmed 2024-10-09 16:46:17 UTC
Same as https://bugs.kde.org/show_bug.cgi?id=468433

I am not sure who is in the wrong though, Qt or KTextEditor/Kate
Comment 2 Christoph Cullmann 2025-01-19 18:19:43 UTC
Paste per menu works but the shortcut of the main window wins.

Confirmed with latest nightmake.
Comment 3 Christoph Cullmann 2025-02-01 18:14:34 UTC
https://doc.qt.io/qt-6/macos-issues.html#menu-bar

Other standard menu items such as Cut, Copy, Paste and Select All are applicable both in your application and in some native dialogs such as QFileDialog. It's important that you create these menu items with the standard shortcuts so that the corresponding editing features will be enabled in the dialogs. At this time there are no MenuRole identifiers for them, but they will be auto-detected just like the application menu items when the QAction has the default TextHeuristicRole.

Looks like that is a known problem, not sure how to fix that best to have right actions there.