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
8989 insert - toggle link navigation mode
9090 o - switch to outline/table of contents mode
9191 ' - switch to bookmark mode
92−H - switch to history mode
93−F1 - switch to help mode
92+F1, Alt-h - switch to help mode
93+Ctrl-h - switch to history mode
9494 i - switch to info mode
9595 P - switch to "presentation" mode
9696 c - switch to previous column layout
main.ml+3−2
@@ -3423,7 +3423,6 @@ let viewkeyboard key mask = · 3422 unmodified lines
34233423 end;
34243424
34253425 | Ascii 'o' -> enteroutlinemode ()
3426− | Ascii 'H' -> enterhistmode ()
34273426
34283427 | Ascii 'u' ->
34293428 state.rects <- [];
@@ -3617,7 +3616,6 @@ let viewkeyboard key mask = · 187 unmodified lines
36173616 end
36183617
36193618 | Ascii '\'' -> enterbookmarkmode ()
3620− | Ascii 'h' | Fn 1 -> enterhelpmode ()
36213619 | Ascii 'i' -> enterinfomode ()
36223620 | Ascii 'e' when Buffer.length state.errmsgs > 0 -> entermsgsmode ()
36233621
@@ -3706,6 +3704,9 @@ let viewkeyboard key mask = · 82 unmodified lines
37063704 | Some n -> setautoscrollspeed n true
37073705 end
37083706
3707+ | Left when Wsi.withctrl mask -> enterhistmode ()
3708+ | Fn 1 | Left when Wsi.withalt mask -> enterhelpmode ()
3709+
37093710 | Left | Right when not (Wsi.withalt mask) ->
37103711 if canpan ()
37113712 then
wsi/x11/wsi.ml+1−2
@@ -501,9 +501,8 @@ let readresp sock = · 500 unmodified lines
501501 | 2 -> (* key press *)
502502 if Array.length state.keymap > 0
503503 then
504− let code = r8 resp 1 in
504+ let code = state.mapc @@ r8 resp 1 in
505505 let mask = r16 resp 28 in
506− let code = if not (withshift mask) then state.mapc code else code in
507506 let keysym = getkeysym code mask in
508507 vlog "keysym = %x %c mask %#x code %d"
509508 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