File tree Expand file tree Collapse file tree
docs/content.en/docs/release-notes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Information about release notes of Coco App is provided here.
1515
1616feat: support switching groups via keyboard shortcuts #911
1717feat: support opening logs from about page #915
18+ feat: support moving cursor with home and end keys #918
1819
1920### 🐛 Bug fix
2021
Original file line number Diff line number Diff line change @@ -147,6 +147,17 @@ export function useAssistantManager({
147147
148148 handleSubmit ( ) ;
149149 }
150+
151+ if ( key === "Home" ) {
152+ e . preventDefault ( ) ;
153+ return currentTarget . setSelectionRange ( 0 , 0 ) ;
154+ }
155+
156+ if ( key === "End" ) {
157+ e . preventDefault ( ) ;
158+ const length = currentTarget . value . length ;
159+ return currentTarget . setSelectionRange ( length , length ) ;
160+ }
150161 } ,
151162 [
152163 isChatMode ,
You can’t perform that action at this time.
0 commit comments