Permalink
Browse files

[feature] dom.opa, event.opa: new DOM events onpaste, oninput

  • Loading branch information...
1 parent cdf502e commit 7409d799535402f5893e17c789c8c18b8e0f253d David Rajchenbach-Teller committed with François-Régis Sinot Mar 25, 2011
Showing with 6 additions and 0 deletions.
  1. +2 −0 stdlib/core/web/core/event.opa
  2. +4 −0 stdlib/core/xhtml/dom.opa
@@ -77,4 +77,6 @@ type Dom.event.kind =
/ { newline }
/ { keyesc }
/ { resize }
+ / { input } //HTML5
+ / { paste } //HTML5
/ { custom : string}
@@ -1088,6 +1088,8 @@ Dom = {{
| { newline } -> "keydown.newline"
| { keyesc} -> "keydown.keyesc"
| { ready } -> "ready"
+ | { input } -> "input"
+ | { paste } -> "paste"
| ~{custom} -> custom
of_string(handle:string):Dom.event.kind = match handle with
@@ -1117,6 +1119,8 @@ Dom = {{
| "scroll" -> {scroll}
| "change" -> {change}
| "resize" -> {resize}
+ | "input" -> {input}
+ | "paste" -> {paste}
| "newline" | "keydown.newline" -> {newline}
| "keyesc" | "keydown.keyesc" -> {keyesc}
| _ -> {custom = handle}

0 comments on commit 7409d79

Please sign in to comment.