History

Massege keys some more

This restores fine-positioning too (shift - up/down via remapped keys).

malc committed 5 years ago

Commit bf132491 parent 709daa93 files · +6 −6Browse files

Unified · Split

3 files
  1. help.ml +2 −2
  2. main.ml +3 −2
  3. wsi/x11/wsi.ml +1 −2
help.ml+2−2
@@ -89,8 +89,8 @@ f - toggle fullscreen · 88 unmodified lines
89insert - toggle link navigation mode89insert - toggle link navigation mode
90o - switch to outline/table of contents mode90o - switch to outline/table of contents mode
91' - switch to bookmark mode91' - switch to bookmark mode
92H - switch to history mode92F1, Alt-h - switch to help mode
93F1 - switch to help mode93Ctrl-h - switch to history mode
94i - switch to info mode94i - switch to info mode
95P - switch to "presentation" mode95P - switch to "presentation" mode
96c - switch to previous column layout96c - switch to previous column layout
main.ml+3−2
@@ -3423,7 +3423,6 @@ let viewkeyboard key mask = · 3422 unmodified lines
3423 end;3423 end;
3424 3424
3425 | Ascii 'o' -> enteroutlinemode ()3425 | Ascii 'o' -> enteroutlinemode ()
3426 | Ascii 'H' -> enterhistmode ()
3427 3426
3428 | Ascii 'u' ->3427 | Ascii 'u' ->
3429 state.rects <- [];3428 state.rects <- [];
@@ -3617,7 +3616,6 @@ let viewkeyboard key mask = · 187 unmodified lines
3617 end3616 end
3618 3617
3619 | Ascii '\'' -> enterbookmarkmode ()3618 | Ascii '\'' -> enterbookmarkmode ()
3620 | Ascii 'h' | Fn 1 -> enterhelpmode ()
3621 | Ascii 'i' -> enterinfomode ()3619 | Ascii 'i' -> enterinfomode ()
3622 | Ascii 'e' when Buffer.length state.errmsgs > 0 -> entermsgsmode ()3620 | Ascii 'e' when Buffer.length state.errmsgs > 0 -> entermsgsmode ()
3623 3621
@@ -3706,6 +3704,9 @@ let viewkeyboard key mask = · 82 unmodified lines
3706 | Some n -> setautoscrollspeed n true3704 | Some n -> setautoscrollspeed n true
3707 end3705 end
3708 3706
3707 | Left when Wsi.withctrl mask -> enterhistmode ()
3708 | Fn 1 | Left when Wsi.withalt mask -> enterhelpmode ()
3709
3709 | Left | Right when not (Wsi.withalt mask) ->3710 | Left | Right when not (Wsi.withalt mask) ->
3710 if canpan ()3711 if canpan ()
3711 then3712 then
wsi/x11/wsi.ml+1−2
@@ -501,9 +501,8 @@ let readresp sock = · 500 unmodified lines
501 | 2 -> (* key press *)501 | 2 -> (* key press *)
502 if Array.length state.keymap > 0502 if Array.length state.keymap > 0
503 then503 then
504 let code = r8 resp 1 in504 let code = state.mapc @@ r8 resp 1 in
505 let mask = r16 resp 28 in505 let mask = r16 resp 28 in
506 let code = if not (withshift mask) then state.mapc code else code in
507 let keysym = getkeysym code mask in506 let keysym = getkeysym code mask in
508 vlog "keysym = %x %c mask %#x code %d"507 vlog "keysym = %x %c mask %#x code %d"
509 keysym (Char.unsafe_chr keysym) mask code;508 keysym (Char.unsafe_chr keysym) mask code;

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