Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit b20cea7

Browse files
committed
clean up event support
1 parent 7f36813 commit b20cea7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/react/event.rb

+12-12
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@ class Event
3131
# Focus
3232
alias_native :related_target, :relatedTarget
3333
# Mouse
34-
alias_native :alt_key, :altKey
34+
# aliased above: alias_native :alt_key, :altKey
3535
alias_native :button, :button
3636
alias_native :buttons, :buttons
3737
alias_native :client_x, :clientX
3838
alias_native :client_y, :clientY
39-
alias_native :ctrl_key, :ctrlKey
39+
# aliased above: alias_native :ctrl_key, :ctrlKey
4040
alias_native :get_modifier_state, :getModifierState
41-
alias_native :meta_key, :metaKey
41+
# aliased above: alias_native :meta_key, :metaKey
4242
alias_native :page_x, :pageX
4343
alias_native :page_y, :pageY
44-
alias_native :related_target, :relatedTarget
44+
# aliased above: alias_native :related_target, :relatedTarget
4545
alias_native :screen_x, :screen_x
4646
alias_native :screen_y, :screen_y
47-
alias_native :shift_key, :shift_key
47+
# aliased above: alias_native :shift_key, :shift_key
4848
# Touch
49-
alias_native :alt_key, :altKey
49+
# aliased above: alias_native :alt_key, :altKey
5050
alias_native :changed_touches, :changedTouches
51-
alias_native :ctrl_key, :ctrlKey
52-
alias_native :get_modifier_state, :getModifierState
53-
alias_native :meta_key, :metaKey
54-
alias_native :shift_key, :shiftKey
51+
# aliased above: alias_native :ctrl_key, :ctrlKey
52+
# aliased above: alias_native :get_modifier_state, :getModifierState
53+
# aliased above: alias_native :meta_key, :metaKey
54+
# aliased above: alias_native :shift_key, :shiftKey
5555
alias_native :target_touches, :targetTouches
5656
alias_native :touches, :touches
5757
# UI
@@ -64,10 +64,10 @@ class Event
6464
alias_native :delta_z, :deltaZ
6565

6666
BUILT_IN_EVENTS = %w{onCopy onCut onPaste onKeyDown onKeyPress onKeyUp
67-
onFocus onBlur onChange onInput onSubmit onClick onDoubleClick onDrag
67+
onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag
6868
onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop
6969
onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver
70-
onMouseUp onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll}
70+
onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel}
7171

7272
def initialize(native_element)
7373
@native = native_element

0 commit comments

Comments
 (0)