dail8859 / dail8859/LuaScript

Binding "tab" key

オープン
#83 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
129
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。