dail8859 / dail8859/LuaScript

Binding "tab" key

Đang mở
#83 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
129
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.