This reverts commit 668e2386729cd253ab2c68837af976add8772888.
Unified · Split
| @@ -4957,7 +4957,7 @@ let () = · 4956 unmodified lines | ||
| 4957 | 4957 | method pmotion x y = |
| 4958 | 4958 | state.mpos <- (x, y); |
| 4959 | 4959 | state.uioh <- state.uioh#pmotion x y |
| 4960 | − method keysym k m = | |
| 4960 | + method key k m = | |
| 4961 | 4961 | vlog "k=%#x m=%#x" k m; |
| 4962 | 4962 | let mascm = m land ( |
| 4963 | 4963 | Wsi.altmask + Wsi.shiftmask + Wsi.ctrlmask + Wsi.metamask |
| @@ -28,7 +28,7 @@ class type t = · 27 unmodified lines | ||
| 28 | 28 | method mouse : int -> bool -> int -> int -> int -> unit |
| 29 | 29 | method motion : int -> int -> unit |
| 30 | 30 | method pmotion : int -> int -> unit |
| 31 | − method keysym : int -> int -> unit | |
| 31 | + method key : int -> int -> unit | |
| 32 | 32 | method enter : int -> int -> unit |
| 33 | 33 | method leave : unit |
| 34 | 34 | method winstate : winstate list -> unit |
| @@ -26,7 +26,7 @@ let onot = object · 25 unmodified lines | ||
| 26 | 26 | method mouse _ _ _ _ _ = () |
| 27 | 27 | method motion _ _ = () |
| 28 | 28 | method pmotion _ _ = () |
| 29 | − method keysym _ _ = () | |
| 29 | + method key _ _ = () | |
| 30 | 30 | method enter _ _ = () |
| 31 | 31 | method leave = () |
| 32 | 32 | method winstate _ = () |
| @@ -45,7 +45,7 @@ class type t = object · 12 unmodified lines | ||
| 45 | 45 | method mouse : int -> bool -> int -> int -> int -> unit |
| 46 | 46 | method motion : int -> int -> unit |
| 47 | 47 | method pmotion : int -> int -> unit |
| 48 | − method keysym : int -> int -> unit | |
| 48 | + method key : int -> int -> unit | |
| 49 | 49 | method enter : int -> int -> unit |
| 50 | 50 | method leave : unit |
| 51 | 51 | method winstate : winstate list -> unit |
| @@ -38,7 +38,7 @@ let onot = object · 37 unmodified lines | ||
| 38 | 38 | method mouse _ _ _ _ _ = () |
| 39 | 39 | method motion _ _ = () |
| 40 | 40 | method pmotion _ _ = () |
| 41 | − method keysym _ _ = () | |
| 41 | + method key _ _ = () | |
| 42 | 42 | method enter _ _ = () |
| 43 | 43 | method leave = () |
| 44 | 44 | method winstate _ = () |
| @@ -58,7 +58,7 @@ class type t = · 13 unmodified lines | ||
| 58 | 58 | method mouse : int -> bool -> int -> int -> int -> unit |
| 59 | 59 | method motion : int -> int -> unit |
| 60 | 60 | method pmotion : int -> int -> unit |
| 61 | − method keysym : int -> int -> unit | |
| 61 | + method key : int -> int -> unit | |
| 62 | 62 | method enter : int -> int -> unit |
| 63 | 63 | method leave : unit |
| 64 | 64 | method winstate : winstate list -> unit |
| @@ -490,7 +490,7 @@ let readresp sock = · 425 unmodified lines | ||
| 490 | 490 | vlog "keysym = %x %c mask %#x code %d" |
| 491 | 491 | keysym (Char.unsafe_chr keysym) mask code; |
| 492 | 492 | if keysym != 0 |
| 493 | − then state.t#keysym keysym mask | |
| 493 | + then state.t#key keysym mask | |
| 494 | 494 | |
| 495 | 495 | | 3 -> (* key release *) |
| 496 | 496 | if Array.length state.keymap > 0 |