Skip to content

Commit

Permalink
Make notes modal cursor starts at the begining of the edited note text
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Sep 3, 2024
1 parent bedd76d commit 7a7c6eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ function NoteManager:init()
view_id='name',
frame={t=1,h=3},
frame_style=gui.FRAME_INTERIOR,
init_text=self.note and self.note.point.name or ''
init_text=self.note and self.note.point.name or '',
init_cursor=1
},
widgets.HotkeyLabel {
key='CUSTOM_ALT_C',
Expand All @@ -175,7 +176,8 @@ function NoteManager:init()
view_id='comment',
frame={t=6,b=3},
frame_style=gui.FRAME_INTERIOR,
init_text=self.note and self.note.point.comment or ''
init_text=self.note and self.note.point.comment or '',
init_cursor=1
},
widgets.Panel{
view_id='buttons',
Expand Down

0 comments on commit 7a7c6eb

Please sign in to comment.