dail8859 / dail8859/LuaScript

Binding "tab" key

Abierto
#83 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C
Estrellas
129
Forks
24
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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");`?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.