Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ctrl+insert/shift+insert/shift+delete shortcuts on Mac #516

Open
vdsirotkin opened this issue Feb 26, 2024 · 5 comments
Open

Support ctrl+insert/shift+insert/shift+delete shortcuts on Mac #516

vdsirotkin opened this issue Feb 26, 2024 · 5 comments
Labels
macos Related specifically to macOS

Comments

@vdsirotkin
Copy link

There are 3 handy shortcuts, which are shipped with Windows:

  • ctrl+insert == ctrl+c
  • shift+insert == ctrl+v
  • shift+delete == ctrl+x

It would be extremely nice if you support them in NotepadNext on MacOS platform.

Thanks!

@dail8859 dail8859 added the macos Related specifically to macOS label Feb 27, 2024
@dail8859
Copy link
Owner

I don't have a Mac to test on at all. Scintilla's keymap defines those keys, which is why it works on Windows.

{Keys::Delete, SCI_SHIFT, Message::Cut},
{Keys::Delete, SCI_CTRL, Message::DelWordRight},
{Keys::Delete, SCI_CSHIFT, Message::DelLineRight},
{Keys::Insert, SCI_NORM, Message::EditToggleOvertype},
{Keys::Insert, SCI_SHIFT, Message::Paste},
{Keys::Insert, SCI_CTRL, Message::Copy},

So I don't have a clue as to why that wouldn't work for MacOS. Maybe someone else will be able to debug/explain it.

@vdsirotkin
Copy link
Author

vdsirotkin commented Feb 27, 2024

@dail8859 thanks for the info!
I have a mac, but i've ~0 experience in debugging c++ applications. If you can help me we some basic information about gathering debug data - i'll do my best to help.

Just realized, that shift+delete actually works.

I've tried to set up the same shortcuts in IntelliJ IDEA, and here's what i've got:
image
image

So seems like key code is different for mac os on these buttons...

@dail8859
Copy link
Owner

I don't know of an easy way debug this other than building the application from source and stepping through the code as it executes. Even then I'm not sure how easy the keyboard input will be to debug. These shortcuts are all defined the same way, so it is very odd to me that Shfit+Del works but the others don't.

@vdsirotkin
Copy link
Author

@dail8859 i guess that "insert" button on mac os has just different keycode. Maybe there's some relatively simple way for me to check this button's code in Scintilla?

@dail8859
Copy link
Owner

SciTE is kind of the "test platform" for Scintilla but I don't think they publish any applications on MacOS you could test with.

It could also be related to Scintilla on Qt, which I'm not sure how popular that is for other applications. I guess you could reach out to the Scintilla mailing list to ask about this but I'm not sure how much help they'd be without any hard evidence. I don't think it is anything I'm doing specifically in the application but cannot say for certain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macos Related specifically to macOS
Projects
None yet
Development

No branches or pull requests

2 participants