• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

handling Shift enter and enter in different way

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby Resmy PM » Fri Dec 08, 2006 7:13 am

I have to submit the chat when pressing enter key. But go to a new line when pressing shift+ enter.
I had write code to trap Enter key press using scan code.And chat is submitting when pressing enter.But the function works when pressing shift+ enter also
Resmy PM
New member
 
Posts: 4
Joined: Fri Dec 08, 2006 6:50 am
Top

Postby Resmy PM » Fri Dec 08, 2006 7:15 am

I have to submit the chat when pressing enter key. But go to a new line when pressing shift+ enter.
Resmy PM
New member
 
Posts: 4
Joined: Fri Dec 08, 2006 6:50 am
Top

Postby phpfreechat » Fri Dec 08, 2006 9:05 am

Currently, pfc doesn't support multilines in posted messages.
What is your problem ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Resmy PM » Mon Dec 11, 2006 5:19 am

Dear stephane,

I want to send chat message when clicking Enter key. and go to a new line on pressing shift+enter or control+enter. Could you help me.
Resmy PM
New member
 
Posts: 4
Joined: Fri Dec 08, 2006 6:50 am
Top

Postby phpfreechat » Mon Dec 11, 2006 8:44 am

I'd like to help you but did you understand what I said ?
I said that currently phpfreechat doesn't support multi-lines. As there is no possibilities to have multi-lines, there is no possibilities to create a new lines.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Resmy PM » Tue Dec 12, 2006 4:55 am

i am doing another chat project where in asp.net and ajax where i want to implement it.Do you have any idea how we can write code for it.Now i am sending chat message by pressing enter key by checking keycode==13.But if i do so shift+enter will also send chat message.
Resmy PM
New member
 
Posts: 4
Joined: Fri Dec 08, 2006 6:50 am
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 8 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub