about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-17 17:59:47 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-17 17:59:47 +0100
commit2470a75eff9ad3bc66bfb8793ae61e7b78482327 (patch)
tree92a68e20f89d08bdbee08f2b90849717a63b6dfc /src
parentec303039b85788606be15d0d079a9d987cffc23c (diff)
downloadchawan-2470a75eff9ad3bc66bfb8793ae61e7b78482327.tar.gz
select: add cursorPrevLink, cursorNextLink
Diffstat (limited to 'src')
-rw-r--r--src/local/select.nim6
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)