diff options
author | bptato <nincsnevem662@gmail.com> | 2024-11-17 17:59:47 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-11-17 17:59:47 +0100 |
commit | 2470a75eff9ad3bc66bfb8793ae61e7b78482327 (patch) | |
tree | 92a68e20f89d08bdbee08f2b90849717a63b6dfc /src | |
parent | ec303039b85788606be15d0d079a9d987cffc23c (diff) | |
download | chawan-2470a75eff9ad3bc66bfb8793ae61e7b78482327.tar.gz |
select: add cursorPrevLink, cursorNextLink
Diffstat (limited to 'src')
-rw-r--r-- | src/local/select.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/local/select.nim b/src/local/select.nim index 9a04f000..c6d62f5d 100644 --- a/src/local/select.nim +++ b/src/local/select.nim @@ -72,6 +72,12 @@ proc cursorUp(select: Select) {.jsfunc.} = elif select.multiple and select.cursor > -1: select.cursor = -1 +proc cursorPrevLink(select: Select) {.jsfunc.} = + select.cursorUp() + +proc cursorNextLink(select: Select) {.jsfunc.} = + select.cursorDown() + proc cancel(select: Select) {.jsfunc.} = select.finishImpl(select.opaque, select, srCancel) |