AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved]how to insert new line wherever caret is?

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
yjs14



Joined: 14 Feb 2013
Posts: 15

PostPosted: Sun Sep 15, 2013 6:41 am    Post subject: [Solved]how to insert new line wherever caret is? Reply with quote

I mean, don't insert \r\n at the position where caret is.

normal:
Quote:
aaaaaaaaaaa(caret)aaaaaaaaaaaa

press enter==>
Quote:
aaaaaaaaaaa
(caret)aaaaaaaaaaaa


I want:
Quote:
aaaaaaaaaaa(caret)aaaaaaaaaaaa

press enter(or another key)==>
Quote:
aaaaaaaaaaaaaaaaaaaaaaa
(caret)


Last edited by yjs14 on Mon Sep 16, 2013 2:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5422

PostPosted: Sun Sep 15, 2013 1:13 pm    Post subject: Reply with quote

yjs14
Add to Hotkeys plugin:

Command on hotkey Enter:
Code:
Call("Scripts::Main", 1, "EvalCmd.js", `"AkelPad.SendMessage(AkelPad.GetEditWnd(), 3044 /*AEM_KEYDOWN*/, 0x23 /*VK_END*/, 0); AkelPad.SendMessage(AkelPad.GetEditWnd(), 258 /*WM_CHAR*/, 0x0D /*VK_RETURN*/, 0);"`)
Back to top
View user's profile Send private message Send e-mail
yjs14



Joined: 14 Feb 2013
Posts: 15

PostPosted: Mon Sep 16, 2013 2:20 am    Post subject: Reply with quote

Instructor
thx,It's working.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group