File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ module Keyboard = {
8282 })
8383 @get external altKey : t => bool = "altKey"
8484 @get external charCode : t => int = "charCode"
85+ @get external code : t => string = "code"
8586 @get external ctrlKey : t => bool = "ctrlKey"
8687 @send
8788 external getModifierState : (t , string ) => bool = "getModifierState"
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ module Keyboard: {
130130 @send external persist : t => unit = "persist"
131131 @get external altKey : t => bool = "altKey"
132132 @get external charCode : t => int = "charCode"
133+ @get external code : t => string = "code"
133134 @get external ctrlKey : t => bool = "ctrlKey"
134135 @send
135136 external getModifierState : (t , string ) => bool = "getModifierState"
You can’t perform that action at this time.
0 commit comments