Add paste detection in text entry area #23

Open
opened 2012-04-02 00:12:16 -07:00 by andyburke · 5 comments
andyburke commented 2012-04-02 00:12:16 -07:00 (Migrated from github.com)
No description provided.
andyburke commented 2012-04-02 23:15:29 -07:00 (Migrated from github.com)

if (e.keyCode == 86) //86 is Paste event

if (e.keyCode == 86) //86 is Paste event
andyburke commented 2012-05-15 21:53:14 -07:00 (Migrated from github.com)

We should look to wrap pastes in <pre> blocks and then style the <pre> blocks in some way to indicate they're pastes.

We should look to wrap pastes in &lt;pre&gt; blocks and then style the &lt;pre&gt; blocks in some way to indicate they're pastes.
andyburke commented 2012-05-15 21:54:28 -07:00 (Migrated from github.com)

We should also probably emit this as a different message type, like 'paste' as opposed to 'say'. Or we'd need some way to delimit the paste within a say, which just seems awful to me.

We should also probably emit this as a different message type, like 'paste' as opposed to 'say'. Or we'd need some way to delimit the paste within a say, which just seems awful to me.
tristau commented 2012-05-15 23:17:17 -07:00 (Migrated from github.com)

So if they paste in, but don't modify ... it would be a 'paste' event. If they do modify the text in anyway it would be just a standard 'say' event. I would also assume that we wouldn't want to wrap links in the

 tags though.   Is the goal here to make a sort of quoted text feature?  I'm not sure I totally understand the motivation behind differentiating pasted in text vs typed in text.

So if they paste in, but don't modify ... it would be a 'paste' event. If they do modify the text in anyway it would be just a standard 'say' event. I would also assume that we wouldn't want to wrap links in the <pre> tags though. Is the goal here to make a sort of quoted text feature? I'm not sure I totally understand the motivation behind differentiating pasted in text vs typed in text.
andyburke commented 2012-05-16 01:07:02 -07:00 (Migrated from github.com)

yeah, basically a quoted text feature. It makes it a lot more obvious when you're pasting something vs. saying something yourself.

yeah, basically a quoted text feature. It makes it a lot more obvious when you're pasting something vs. saying something yourself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
andyburke/grmble#23
No description provided.