Skip to content

Commit 62ed3dc

Browse files
committed
Add protection for remaining key handler
Seems to be, painter not always cleaned up
1 parent d41188a commit 62ed3dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/JSRootPainter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7058,7 +7058,9 @@
70587058

70597059
JSROOT.THistPainter.prototype.ProcessKeyPress = function(evnt) {
70607060

7061-
var isactive = this.select_main().attr('frame_active');
7061+
var main = this.select_main();
7062+
if (main.empty()) return;
7063+
var isactive = main.attr('frame_active');
70627064
if (isactive && isactive!=='true') return;
70637065

70647066
var key = "";

0 commit comments

Comments
 (0)