make EditField ignore Ctrl-A until we get Home key support

develop
Myk Taylor 2023-07-07 14:49:10 -07:00
parent 0aa2146e11
commit 734de0dcd1
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 5 additions and 4 deletions

@ -756,9 +756,10 @@ function EditField:onInput(keys)
find('.*[%w_%-][^%w_%-]')
self:setCursor(prev_word_end or 1)
return true
elseif keys.CUSTOM_CTRL_A then -- home
self:setCursor(1)
return true
-- commented out until we get HOME key support from DF
-- elseif keys.CUSTOM_CTRL_A then -- home
-- self:setCursor(1)
-- return true
elseif keys.KEYBOARD_CURSOR_RIGHT then
self:setCursor(self.cursor + 1)
return true

@ -1 +1 @@
Subproject commit e7a9aab2cd0065a7b90b03c27919b692fba44a0b
Subproject commit 33ecf539b0dc993818d6830ce26a234a321b9ae3