-
Notifications
You must be signed in to change notification settings - Fork 23
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
Binding "tab" key #83
Comments
It depends exactly what you are needing to do. At the lowest level (Scintilla) the At the Notepad++ level, From the sound of it you are wanting Notepad++ to still do all of its work, and then add something extra. What I've had to do in some of my other plugins is hook the keyboard input with C code to let Notepad++ handle it like "normal" and then add some extra logic after it is done. |
I've thought about adding that functionality to this plugin to be able to hook the keyboard input from Lua which would allow users to do something before, after, block, alter, etc keypresses. Would not be useful to alot of users but could still be useful if implemented correctly. The other option would be to compile a C module to hook the keyboard that uses the Lua library distributed with this plugin. I know it is possible but haven't done it myself in a while. |
I see here https://www.scintilla.org/ScintillaDoc.html#KeyBindings that tab is available as
SCK_TAB
but it can't be assigned to a shortcutnpp.AddShortcut
or using this:If I assign it manually in Notepad++'s settings then it works but the default action of
[tab]
becomes disabled (so I can't make indentation then).Is there a way to detect
[tab]
so that I could insert text after it's pressed witheditor:AddText("text");
?The text was updated successfully, but these errors were encountered: