#344 nav to start/end of fields

This commit is contained in:
Mikayla Fischler
2023-09-23 15:30:53 -04:00
parent 645a5f5137
commit 18bcfb4014
3 changed files with 24 additions and 8 deletions

View File

@@ -106,6 +106,10 @@ local function number_field(args)
ifield.nav_right()
elseif event.key == keys.a and event.ctrl then
ifield.select_all()
elseif event.key == keys.home or event.key == keys.up then
ifield.nav_start()
elseif event.key == keys["end"] or event.key == keys.down then
ifield.nav_end()
end
end
end

View File

@@ -65,6 +65,10 @@ local function text_field(args)
ifield.nav_right()
elseif event.key == keys.a and event.ctrl then
ifield.select_all()
elseif event.key == keys.home or event.key == keys.up then
ifield.nav_start()
elseif event.key == keys["end"] or event.key == keys.down then
ifield.nav_end()
end
end
end