Commit cfdb3952 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

broadway: Fix input events

parent 97c0d112
......@@ -582,10 +582,14 @@ function handleMessage(message)
}
function getSurfaceId(ev) {
var surface = ev.target.surface;
if (surface != undefined)
return surface.id;
return 0;
var target = ev.target;
while (target.surface == undefined) {
if (target == document)
return 0;
target = target.parentNode;
}
return target.surface.id;
}
function sendInput(cmd, args)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment