Handling arrow key moving from one line to another in a field
Posted: Thu May 07, 2020 2:59 pm
Hi Everyone,
I'm currently struggling with this problem:
I'm successfully filtering the lines of Field 2 with the text of field 1, and when the results are displayed in field 2, I'm wanting the up/down arrow key (whilst I am still in field 1), to move up/down the displayed lines of field 2.
I've got as far as this for the down arrow key (which of course doesn't work - I'm assuming I'm not grasping the correct logic yet or have got my self muddled with the repeat loop?!)
Grateful for any hints etc.
Many thanks,
Kind regards,
Glenn
I'm currently struggling with this problem:
I'm successfully filtering the lines of Field 2 with the text of field 1, and when the results are displayed in field 2, I'm wanting the up/down arrow key (whilst I am still in field 1), to move up/down the displayed lines of field 2.
I've got as far as this for the down arrow key (which of course doesn't work - I'm assuming I'm not grasping the correct logic yet or have got my self muddled with the repeat loop?!)
Code: Select all
-- whilst I'm still in field 1:
on arrowkey theKey
repeat with x = 1 to the number of lines in field 2
if theKey is "down" then go to line x of field 2
pass arrowkey
end repeat
end arrowkey
Many thanks,
Kind regards,
Glenn