Bug 838316 - Ctrl-C in editor changes topic validity to "unknown"
Summary: Ctrl-C in editor changes topic validity to "unknown"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Topic Tool
Classification: Other
Component: FUDCon Docs Hack
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joshua Wulf
QA Contact: Joshua Wulf
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-08 11:33 UTC by Joshua Wulf
Modified: 2014-10-19 23:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-08 17:21:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2012-07-08 11:33:28 UTC
At the moment copying text *from* the editor will change the topic validity state to "unknown".

This is because a keydown event that isn't a meta key or arrow is interpreted as a change to the text.

Two ways to fix this:

1. Intercepting Ctrl-C : http://stackoverflow.com/questions/2903991/how-to-detect-ctrlv-ctrlc-using-javascript

2. Change the event from a keydown to a "text change" event, if one exists.

Comment 1 Joshua Wulf 2012-08-08 17:21:55 UTC
Fixed by moving the event handler to the onChange event.


Note You need to log in before you can comment on or make changes to this bug.