better displayImage from ketmar

This commit is contained in:
Adam D. Ruppe 2017-11-20 13:19:33 -05:00
parent 971490085d
commit 325de11985
1 changed files with 1 additions and 1 deletions

View File

@ -4700,7 +4700,7 @@ void displayImage(Image image, SimpleWindow win = null) {
}
win.eventLoop(0,
(KeyEvent ev) {
win.close();
if (ev.pressed) win.close();
} );
} else {
win.image = image;