Can I force Repaint Animation Window?

Hello. I am creating Component to edit Keyframes in Animation Clip.

I can edit each Keyframe’s time and value in inspector, but Animation Window not updated until I repaint it manually … for example, switch between “Dope Sheet” and “Curves”, click another curve in “Curves” etc.

When I edit curve in Animation Window, inspector updated immediately.
So, I want when I edit Keyframe in inspector, Animation Window updated immediately.
Can I force Repaint Animation Window when inspector changed?

Sorry my English is limited. I thank you for reading it through.


using UnityEditorInternal;
UnityEditorInternal.InternalEditorUtility.RepaintAllViews ();