Commit graph

28 commits

Author SHA1 Message Date
Colin Caine
8f481ed14c Fix #455. 2018-05-03 20:21:15 +01:00
Oliver Blanthorn
159393de71
Prevent page info from opening with editor 2018-04-28 16:35:43 +01:00
Colin Caine
e30b766794 Make key suppression less bad 2018-04-16 00:07:49 +01:00
Colin Caine
2ccfdda110 Use keyseq for normalmode
Also rename ex_str to exstr in a bunch of places for no real reason.
2018-04-16 00:07:49 +01:00
Oliver Blanthorn
095ce771ea
Formatting: run all typescript through prettier 2018-04-13 19:28:03 +01:00
glacambre
368db055f8
keydown_content.ts: Add keydown event listener to frames too 2018-04-02 19:15:34 +02:00
Oliver Blanthorn
972e69ad9c
Find mode tidied up for intrepid explorers. 2018-03-18 15:08:09 +00:00
Oliver Blanthorn
f274a49bee
Improve find performance
Still very slow on some pages such as
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object.
2018-03-18 13:11:11 +00:00
Oliver Blanthorn
f2244ee554
Sketch out find command using mark.js 2018-03-18 13:10:17 +00:00
Zhong Jianxin
01221f3052 Add inputmode
- Add `focusinput -n` and `focusinput -N`
- Press `gi` to focus input and enter inputmode
- When in inputmode, `Tab` to focus input after last focussed one, `Shift+Tab`
  to focus input before last focussed one
2017-12-05 22:12:34 +00:00
Colin Caine
c84e8016c9 fix yet another bug in key suppression
Not going to push to master when I'm tired again.
2017-11-21 04:58:48 +00:00
Colin Caine
b251ef625a fix: correct bad key ignoring from 9683e11 2017-11-21 03:20:17 +00:00
Colin Caine
9683e11f70 Tidy up gobble mode. Re-use key classification. 2017-11-20 23:23:25 +00:00
Colin Caine
b9ad37b496 hinting: fix space bind. Allow some FF binds. 2017-11-19 16:44:14 +00:00
Colin Caine
d45d906865 keydown: whitelist <space>
Fixes #77.
2017-11-19 16:22:00 +00:00
Colin Caine
3b5d1f64ca keydown: Unshadow more FF commands
This and preceding commits close #70.
2017-11-19 08:07:22 +00:00
Colin Caine
17cff21b8d keydown: Make normal mode suppression more predictable 2017-11-19 03:33:15 +00:00
Colin Caine
23f064a9bc keydown: deprecate old suppression system 2017-11-19 03:22:59 +00:00
Colin Caine
75ede02bc6 keydown: improve suppression logic 2017-11-19 02:41:01 +00:00
Colin Caine
48cedc058b keydown: ignore untrusted keyevents
Ref #24.
2017-11-09 06:01:26 +00:00
Oliver Blanthorn
37119e510a
Dirty workaround to allow ^L, ^G to be passed through to Firefox correctly 2017-11-04 18:03:58 +00:00
Colin Caine
8d53fd60eb Rework messaging, key suppression, exmode parser
exmode.parser now converts strings to the types given in excmd
signatures.

Messaging now works in both directions (but I haven't made excmds.ts use
the new system yet. Exercise for the reader (see keydown_* state() for a
simple example)).

keys are now being suppressed, but in a pretty stupid way.

I got fed up of not having proper itertools, or str conversions, so I
wrote some. Others have written them in JS, but they were fun to make.
Only the ones I'm using are tested.
2017-10-23 09:42:50 +01:00
Colin Caine
bed1109cc9 types: extend type checking 2017-10-06 03:30:51 +01:00
Colin Caine
b37743adaf src: normalize indentation 2017-10-06 03:30:51 +01:00
Colin Caine
7736042ea3 src: fix tsc -d; use insert mode for inputs
The input detection is very naive at the moment. Fix soon.
2017-10-05 18:15:27 +01:00
Colin Caine
7b789350df src: consistently use message.type 2017-10-04 23:58:30 +01:00
Colin Caine
5964430fe1 Convert to es6 modules
Motivation:

 - Most test frameworks expect modules
 - I'm told they're the future

Changes:

 - Every typescript source file is now an es6 module
 - Build system is now webpack (tho rollup makes nicer outputs)
 - Outputs of buildsystem are one js file per entry point (background,
   content, commandline_frame)
 - These bundled js files are generated by traversing the dependency
   graph of each entry point
2017-10-02 01:17:32 +01:00
Colin Caine
9e57a25aa6 Proof of concept
keyboard API shim written, parser revised, example scrolling excmds
implemented.
2017-09-25 05:00:41 +01:00