=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js 2015-09-10 17:38:10 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js 2015-09-15 15:54:41 +0000 @@ -77,6 +77,9 @@ return; } + // to request the input focus to this window + win.canvas.focus(); + if (p2j.screen.topWindowId() == win.id) { return; === modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js 2015-09-13 22:51:40 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js 2015-09-15 15:54:41 +0000 @@ -160,6 +160,8 @@ options.width = options.width || 400; options.height = options.width || 600; options.style = options.style || { }; + // to make a window can be focused + options.tabIndex = options.tabIndex || 1; // this must always be set so that the canvas element is removed from the normal layout // processing of the document