Bug 838316

Summary: Ctrl-C in editor changes topic validity to "unknown"
Product: [Other] Topic Tool Reporter: Joshua Wulf <jwulf>
Component: FUDCon Docs HackAssignee: Joshua Wulf <jwulf>
Status: CLOSED CURRENTRELEASE QA Contact: Joshua Wulf <jwulf>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: lcarlon, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-08 17:21:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.