Skip to content

Support paste (Command-V) on macOS#110

Merged
simonowen merged 1 commit into
simonowen:mainfrom
petemoore:sdl-paste-clipboard
May 24, 2026
Merged

Support paste (Command-V) on macOS#110
simonowen merged 1 commit into
simonowen:mainfrom
petemoore:sdl-paste-clipboard

Conversation

@petemoore
Copy link
Copy Markdown
Contributor

@petemoore petemoore commented May 21, 2026

Hey Simon!

As you liked the last feature, here is another one. On Windows I saw you could paste from the clipboard, but not under SDL. This patch adds paste support to the SDL build, with a menu on macOS (Edit -> Paste (Cmd+V)). This mirrors the Windows menu option Tools -> Paste Clipboard. On Linux you'd still need to wire it up via the fkeys config (no menu added there). I'm happy to add a Linux UI hook in a follow-up if you like.

One incidental refactor: I moved the Action::Paste handler from Win32/UI.cpp into Base/Actions.cpp so it could be shared.

Let me know what you think! I had some help from Claude on this one, I have to level with you. Luckily though it has quite a small footprint, as I think you had done most of the hard work already!

I've tested quite a bit on macOS, and it works well for me. I'm able to paste entire SAM BASIC programs into the editor etc.

Thanks,
Pete

@simonowen simonowen merged commit 87f2a69 into simonowen:main May 24, 2026
6 checks passed
@simonowen
Copy link
Copy Markdown
Owner

Looks good, thanks Pete! I've no problem with AI if it's used as a targetted scalpel and not a vibe-coded bulldozer.

I'm still overhauling the user-interface to remove the platform specifics, but I'm not quite decided on its final form yet. It's long overdue that macOS and Linux get the same level of support as Windows. Maintaining a single UI makes development and testing a lot easier too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants