From: Software_Developer on
Hello.

I've found one very strange bug in Word 2007. When the Home tab of the
Ribbon is active and selection covers the first or the last character of the
internal range of Content Control, unexpected ContentControlOnExit is fired!
If the Ribbon is minimized (Quick Access Toolbar -> Minimize the Ribbon [or
press Ctrl+F1]) or any other tab is active everything works properly.

To reproduce this issue you can insert plain text Content Control and fill
it with text "123". Activate the Home tab of the Ribbon, put cursor into the
Control -> ContentControlOnEnter event is fired - OK, select text "1" or "3"
or "123" -> ContentControlOnExit is fired - Wrong, cursor is still placed
inside the Control and Control remains active. Expected result:
ContentControlOnExit event must not be fired in this situation. Toggling
Design Mode doesn't affect this issue.

I would be grateful if anyone could submit this bug to Microsoft to resolve
this problem. Thanks.
From: Greg Maxey on
There has been a known bug with the Word2007 ContentControl OnExit event
since Word2007 was released and MS doesn't seem to give a hoot about fixing
it. While I had not experience your specific scenario (and I can reproduce
it), the event always fires twice (On entry and on exit) whenever the Home
tab is selected. Probably related.

I can say that both issues are resolved in Word2010.




"Software_Developer" <SoftwareDeveloper(a)discussions.microsoft.com> wrote in
message news:CA3DA5B6-AAEF-4CF3-B272-C7459B9C31E5(a)microsoft.com...
> Hello.
>
> I've found one very strange bug in Word 2007. When the Home tab of the
> Ribbon is active and selection covers the first or the last character of
> the
> internal range of Content Control, unexpected ContentControlOnExit is
> fired!
> If the Ribbon is minimized (Quick Access Toolbar -> Minimize the Ribbon
> [or
> press Ctrl+F1]) or any other tab is active everything works properly.
>
> To reproduce this issue you can insert plain text Content Control and fill
> it with text "123". Activate the Home tab of the Ribbon, put cursor into
> the
> Control -> ContentControlOnEnter event is fired - OK, select text "1" or
> "3"
> or "123" -> ContentControlOnExit is fired - Wrong, cursor is still placed
> inside the Control and Control remains active. Expected result:
> ContentControlOnExit event must not be fired in this situation. Toggling
> Design Mode doesn't affect this issue.
>
> I would be grateful if anyone could submit this bug to Microsoft to
> resolve
> this problem. Thanks.