History

Revert "Make sym/code distinction implicit"

This reverts commit 668e2386729cd253ab2c68837af976add8772888.

malc committed 5 years ago

Commit 2c8e6cc1 parent 668e2384 files · +7 −7Browse files

Unified · Split

4 files
  1. main.ml +1 −1
  2. wsi.mli +1 −1
  3. wsi/cocoa/wsi.ml +2 −2
  4. wsi/x11/wsi.ml +3 −3
main.ml+1−1
@@ -4957,7 +4957,7 @@ let () = · 4956 unmodified lines
49574957 method pmotion x y =
49584958 state.mpos <- (x, y);
49594959 state.uioh <- state.uioh#pmotion x y
4960− method keysym k m =
4960+ method key k m =
49614961 vlog "k=%#x m=%#x" k m;
49624962 let mascm = m land (
49634963 Wsi.altmask + Wsi.shiftmask + Wsi.ctrlmask + Wsi.metamask
wsi.mli+1−1
@@ -28,7 +28,7 @@ class type t = · 27 unmodified lines
2828 method mouse : int -> bool -> int -> int -> int -> unit
2929 method motion : int -> int -> unit
3030 method pmotion : int -> int -> unit
31− method keysym : int -> int -> unit
31+ method key : int -> int -> unit
3232 method enter : int -> int -> unit
3333 method leave : unit
3434 method winstate : winstate list -> unit
wsi/cocoa/wsi.ml+2−2
@@ -26,7 +26,7 @@ let onot = object · 25 unmodified lines
2626 method mouse _ _ _ _ _ = ()
2727 method motion _ _ = ()
2828 method pmotion _ _ = ()
29− method keysym _ _ = ()
29+ method key _ _ = ()
3030 method enter _ _ = ()
3131 method leave = ()
3232 method winstate _ = ()
@@ -45,7 +45,7 @@ class type t = object · 12 unmodified lines
4545 method mouse : int -> bool -> int -> int -> int -> unit
4646 method motion : int -> int -> unit
4747 method pmotion : int -> int -> unit
48− method keysym : int -> int -> unit
48+ method key : int -> int -> unit
4949 method enter : int -> int -> unit
5050 method leave : unit
5151 method winstate : winstate list -> unit
wsi/x11/wsi.ml+3−3
@@ -38,7 +38,7 @@ let onot = object · 37 unmodified lines
3838 method mouse _ _ _ _ _ = ()
3939 method motion _ _ = ()
4040 method pmotion _ _ = ()
41− method keysym _ _ = ()
41+ method key _ _ = ()
4242 method enter _ _ = ()
4343 method leave = ()
4444 method winstate _ = ()
@@ -58,7 +58,7 @@ class type t = · 13 unmodified lines
5858 method mouse : int -> bool -> int -> int -> int -> unit
5959 method motion : int -> int -> unit
6060 method pmotion : int -> int -> unit
61− method keysym : int -> int -> unit
61+ method key : int -> int -> unit
6262 method enter : int -> int -> unit
6363 method leave : unit
6464 method winstate : winstate list -> unit
@@ -490,7 +490,7 @@ let readresp sock = · 425 unmodified lines
490490 vlog "keysym = %x %c mask %#x code %d"
491491 keysym (Char.unsafe_chr keysym) mask code;
492492 if keysym != 0
493− then state.t#keysym keysym mask
493+ then state.t#key keysym mask
494494
495495 | 3 -> (* key release *)
496496 if Array.length state.keymap > 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t