dail8859 / dail8859/LuaScript

Binding "tab" key

Aperta
#83 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
129
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with the OnChar event handling, npp.AddShortcut, and editor:AddText("text") usage shown in the issue, then compare their tab-key behavior with Scintilla's SCK_TAB documentation. Done means determining whether a script can detect Tab without disabling default indentation and documenting or exposing a working way to insert text after the key is pressed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
c, lua
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.