Skip to content

Binding "tab" key #83

Description

@manake

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 shortcut npp.AddShortcut or using this:

function func1(ch)
    if (ch == "	") then
        print("Doesn't work (this message is never shown).");
    end

    print("Typed a regular character like a, b, c, d, e, etc... works.")
end

npp.AddEventHandler("OnChar", func1)

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 with editor:AddText("text");?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions