Commit Graph

7628 Commits

Author SHA1 Message Date
Vincent Sanders
6bbae1f228 add document IDL and test for geteleemntbyid 2012-08-01 19:25:45 +01:00
Michael Drake
b238791002 Use enum instead of magic numbers for tracking key modifier states. Pass special keys to core (e.g. WORD_LEFT, SELECT_ALL, etc). 2012-08-01 14:47:20 +01:00
Michael Drake
46527795db Pass pointer hotspots to libnsfb. 2012-08-01 12:52:46 +01:00
Michael Drake
d84ad62a04 Scroll text in writable text widget so caret is always in view. 2012-08-01 09:29:26 +01:00
Michael Drake
465ebb2c7b Only writable text widget needs caret rendering. 2012-08-01 09:16:25 +01:00
John-Mark Bell
37779f77d2 Fix build: we need libdom now. 2012-08-01 08:53:13 +01:00
Vincent Sanders
845dca45de resume parse on sync script error as well as success 2012-07-31 22:59:18 +01:00
Michael Drake
9e3db46b67 Handle CTRL modifier too. CTRL with cursor left/right is same as SHIFT. CTRL+U clears writable. 2012-07-31 22:55:08 +01:00
Michael Drake
21ce8800b8 Cursor left/right keys plus modifier move caret to extrems. 2012-07-31 22:40:47 +01:00
Michael Drake
de7361ca88 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-07-31 22:38:34 +01:00
Vincent Sanders
4fd5d51765 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-07-31 22:33:38 +01:00
Vincent Sanders
5c25b8255a add post parse script execution 2012-07-31 22:33:08 +01:00
Michael Drake
75cc4a06be Factor out some repeated code. 2012-07-31 22:30:39 +01:00
Michael Drake
53183b2411 Make text input widget remove caret on "strip focus" event. 2012-07-31 22:18:44 +01:00
Michael Drake
9505fdcf84 Make browser window widget remove caret on "strip focus" event. 2012-07-31 22:16:06 +01:00
Michael Drake
72cb5b6ea4 Add widget callback for getting stripped of focus. Call it in the input setter, on previous input holder. 2012-07-31 22:14:48 +01:00
Michael Drake
daa47fce52 Use setter when giving clicked input focus. 2012-07-31 21:49:01 +01:00
Vincent Sanders
84152cd72b add another script test 2012-07-31 21:44:03 +01:00
Michael Drake
2999410af6 When a text input widget has its text set, and it has the caret, move the caret to the end. 2012-07-31 21:04:20 +01:00
Michael Drake
9a92e7bdeb Core's gui_window_remove_caret should only remove caret if the bw in question owns the caret. 2012-07-31 21:02:19 +01:00
Michael Drake
140795500c Claim, position, and render caret in text input widget. Currently does not remove caret when input widget is stripped of focus (because widget doesn't know). 2012-07-31 20:43:43 +01:00
Michael Drake
2e4bb2d020 Round to nearest point between chars in nsfont_position_in_string, instead of rounding down. 2012-07-31 20:41:27 +01:00
Michael Drake
941a48dabd When setting fbtk caret, register callback for redrawing caret removal. 2012-07-31 20:40:14 +01:00
Michael Drake
4125a8afdf Remove strlen from redraw functions. 2012-07-31 15:18:25 +01:00
Michael Drake
45b9d96678 Add support for editing text input widget contents from arbitrary position in string (instead of just end). 2012-07-31 15:13:52 +01:00
Vincent Sanders
cbfd887311 Merge branch 'vince/script-async' 2012-07-31 14:50:43 +01:00
Vincent Sanders
c0aaf31f5a fix global handling 2012-07-31 14:48:53 +01:00
Michael Drake
90b0c48bb2 Split out common code to generate a font style for text input widget. 2012-07-31 14:06:57 +01:00
Michael Drake
f6436d54c8 Add caret to browser window widgets. Caret now shows when editing forms. 2012-07-31 14:05:39 +01:00
Michael Drake
8db6d74bcb Add basic awareness of text input caret to ftbk and functions to get/set caret pos. 2012-07-31 14:04:12 +01:00
Vincent Sanders
d763e57d30 fix dom parser error return check 2012-07-31 12:49:41 +01:00
Vincent Sanders
4182685d1e fix parse completion - working syncronous scripts 2012-07-30 22:56:40 +01:00
Vincent Sanders
b0a41606ff extend html data processing to deal with paused parse 2012-07-30 22:56:15 +01:00
Vincent Sanders
db76dd3b1a extend completion types 2012-07-30 22:55:13 +01:00
Vincent Sanders
06608c1bf0 extend script enumeration to include asyncronous and deferred scripts 2012-07-30 22:54:14 +01:00
Vincent Sanders
4f0e70b50d split up the script processing 2012-07-30 22:54:14 +01:00
Vincent Sanders
f207f14be1 simple script tests 2012-07-30 22:54:14 +01:00
Chris Young
c48d7fa2da missing 'defined' 2012-07-28 22:32:32 +01:00
Chris Young
8ac36b64b1 Add a GUI option to enable/disable Javascript, if NetSurf is built with Javascript support. 2012-07-28 22:27:53 +01:00
Chris Young
dfef1d6fde Use requester.class directly, so we can get requesters to appear on NetSurf's screen. Untested. 2012-07-28 21:56:27 +01:00
Michael Drake
72fe92d9ca Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-07-27 14:08:17 +01:00
Michael Drake
41f88e6937 Scrollbar behaviour fixes.
Stop scrollbar sliding at different rate from pointer.
Stop jump on drag start when scrollbar position indicator isn't at zero.
2012-07-27 14:05:13 +01:00
Ole Loots
7d011c62ff Open hotlist and history at top right corner 2012-07-27 03:47:42 +02:00
Ole Loots
e4d83d660e Open search form at lower right corner 2012-07-27 03:35:53 +02:00
Ole Loots
329fba581a Handle "Save window size" menu event. 2012-07-27 03:06:12 +02:00
Michael Drake
382c2f2289 Only warp pointer once for a sequence of consecutive move events. Further reduces lag when dragging scrollbar. 2012-07-26 23:14:27 +01:00
Michael Drake
514bee5786 Handle consecutive queued mouse move events together. Reduces pointer lag when busy. 2012-07-26 22:38:38 +01:00
Michael Drake
8660bed543 Change a couple of 'if's to 'else if's. 2012-07-26 19:04:45 +01:00
Michael Drake
305938bb48 Avoid a load of repeat operations when panning by greater than viewport size. 2012-07-26 19:00:38 +01:00
Michael Drake
d9d7dcb758 Avoid redrawing the whole screen when scrolling by zero pixels. 2012-07-26 18:37:51 +01:00