diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-04-04 16:44:35 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-04-04 16:44:35 -0400 |
commit | c01ef5762aa22c197018b2848c3a5dbe21ca3e20 (patch) | |
tree | 1707e4622fa562825c2d869bcb80d0ad14179d0f /src/shell.html | |
parent | de4044ab6436b0afaf553ecdee2f8a15fbb5ed28 (diff) |
Prevent contextmenu event on canvas
I'm doing this in the shell so it benefits everyone, not only glut.
Diffstat (limited to 'src/shell.html')
-rw-r--r-- | src/shell.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.html b/src/shell.html index 641257c0..37509889 100644 --- a/src/shell.html +++ b/src/shell.html @@ -4,7 +4,8 @@ <title>Emscripten-Generated Code</title> <body> <center> - <canvas id='canvas' width='256' height='256' style="border: 1px solid black"></canvas> + <canvas id='canvas' width='256' height='256' style="border: 1px solid black" + oncontextmenu="event.preventDefault()"></canvas> <hr> <textarea id="output" style="font-family: monospace; width: 80%" rows="8"></textarea> <hr> |