MATLAB: How are the keyboard inputs sent to the Microsoft Rich Text Editor ActiveX control that is embedded in a GUI

activeactxcontrolcrtlctrl+ceditorMATLABmicrosoftrichtext;x

I have a GUI (in focus) with an ActiveX Control like Microsoft Rich Text Editor, that can contain text. When the ActiveX control is empty and I press CTRL-C, the keyboard command is sent to the MATLAB workspace instead. This does not occur in the case of Edit Boxes embedded in a GUI. Why does the keyboard input of CTRL-C get redirected to the MATLAB workspace?

Best Answer

This is expected behavior. Keyboard input is first sent to the window in focus. In this case, the active window is the figure that contains an ActiveX Control. When the ActiveX control gets the keyboard input sequence it determines what needs to be done with it. If the input is recognized by the ActiveX, the entry is executed. Otherwise, it passes the sequence to the MATLAB workspace.