this is a workaround which should prevent that the key event is executed if a text/latex is written into the canvas.

This commit is contained in:
suter_a 2025-02-17 17:53:39 +01:00
parent 688c319e6f
commit d65b04e855

View File

@ -937,7 +937,13 @@ void PMusrCanvas::Done(Int_t status)
void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
{
if (event != kKeyPress)
return;
return;
// this is a workaround which should prevent that the key event is executed if
// a text/latex is written into the canvas.
if (!strcmp(selected->GetTitle(), "dataTheoryPad"))
return;
if (fBatchMode) {
if (fStartWithAvg) { // this is needed to get the averaging in the batch mode