I want to have a bullet precede any text typed. When an [Enter] key is pressed, a new line starts with a bullet preceding whatever new text is typed. I've seen this done at fargo.io and workflowy.com and need to know how they do it!
harderm
0
Newbie Poster
Recommended Answers
Jump to Postyou need to attached a handler to the window object and get the event's keyCode. If they keyCode is equal to the enter value (42 or something? I don't know off hand), then you create a new "listener" row.
Since the window is listening, you can figure out the keyCode …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.