Commit graph

214 commits

Author SHA1 Message Date
Mihai Varga
9a3e71bad8 Keyboard input is handled in a hidden textarea
We now have a hidden text area where the user's input actually goes,
but it also fires events that are caught by leaflet and are sent
to the server
2015-06-26 19:20:21 +03:00
Mihai Varga
bee60c69e8 Move the cursor to the left by half its size 2015-06-26 14:34:18 +03:00
Mihai Varga
e901c6fe34 Set marker not clickable during mouse selection 2015-06-26 12:43:57 +03:00
Mihai Varga
56418272ca Fixed keyCode on chrome 2015-06-26 12:04:04 +03:00
Mihai Varga
3dffe1ed62 This should handle doc resize caused by page deletion 2015-06-26 10:11:57 +03:00
Henry Castro
38133c7886 loleaflet: Swap selection handler.
In order to get continuous selection, the handlers are swapped if the
distance from cursor to handlers cross over.
2015-06-25 23:29:58 -04:00
Henry Castro
392a4bbb85 loleaflet: Reset drag flag when no selection. 2015-06-25 20:36:53 -04:00
Henry Castro
48d7af6378 loleaflet: Avoid mouse click on blinking cursor. 2015-06-25 16:37:57 -04:00
Jan Holesovsky
be6b89d1aa More tweaks wrt. cursor blinking. 2015-06-25 18:31:33 +02:00
Mihai Varga
32d6f4fc5f Detect document size changes 2015-06-25 19:24:57 +03:00
Henry Castro
fa89bbd55b loleaflet: Set cursor blinking linear 2015-06-25 12:15:38 -04:00
Mihai Varga
7858402ea4 Removed hungarian notation 2015-06-25 16:15:04 +03:00
Mihai Varga
f5c8ec852d Fixed eslint errors in Control.EditView.js 2015-06-25 15:50:53 +03:00
Mihai Varga
a72d66f08b Fixed eslint errors in Control.Parts.js 2015-06-25 15:48:51 +03:00
Mihai Varga
fa3a5ab0c1 Fixed eslint errors in Control.Search 2015-06-25 15:36:02 +03:00
Mihai Varga
7be20044be Fixed eslint errors in Control.StatusIndicator.js 2015-06-25 15:25:46 +03:00
Mihai Varga
d85b853e33 Fixed eslint errors in Cursor.js 2015-06-25 15:24:41 +03:00
Mihai Varga
a04a0c4a9f Fixed eslint errors in GridLayer.js 2015-06-25 15:23:03 +03:00
Mihai Varga
64f6e5647d Fixed eslint errors in TileLayer.js 2015-06-25 15:16:14 +03:00
Mihai Varga
dfbc34af2f Fix eslint errors in Map.js 2015-06-25 14:19:06 +03:00
Mihai Varga
2f6dd8a3e7 Ignore src/scrollbar when running jake lint 2015-06-25 13:49:51 +03:00
Mihai Varga
e9691e6557 Enable fadeAnimated only when zooming/scrolling 2015-06-25 13:25:03 +03:00
Mihai Varga
d977411f0c Request selection content after selection and a time delta 2015-06-25 13:09:38 +03:00
Mihai Varga
bc65f57a54 tile invalidation: don't disable animFrame
This affects zooming. Instead just skip the method that calls
the animation frame
2015-06-25 12:35:31 +03:00
Mihai Varga
4b996b644d Copy event handler
I implemented the solution found here
http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard#answer-17528590
which basically creates an invisible text area, sets focus to it,
selects the text, enables firing the oncopy then focus is restored to
the document.
2015-06-24 13:32:56 +03:00
Mihai Varga
1e5269a467 Clicking on a selection should deselect it 2015-06-23 14:56:03 +03:00
Mihai Varga
e8d5cbbb1e Replaced 'dragging' with 'isDragged' because 'dragging' is already used 2015-06-23 14:23:35 +03:00
Mihai Varga
b5cbd467d9 Cancel tile request for tiles out of the visible area
This provides a better scrolling experience
When a large enough number of tiles have been requested we know that
they will cover the whole viewing area so we're able to cancel the
previous (not yet fulfilled) requests
2015-06-23 13:44:35 +03:00
Mihai Varga
d2124f3078 Fixed invalid tiles bounds 2015-06-22 17:48:05 +03:00
Mihai Varga
c5e950bb41 Reverted ecfe65b37f 2015-06-22 17:45:43 +03:00
Mihai Varga
9c73ddbd08 Reverted 73974f7397 2015-06-22 17:45:10 +03:00
Mihai Varga
37b79bb643 loleaflet: update selection when dragging the selection handle 2015-06-22 11:37:39 +03:00
Henry Castro
c157e732f9 loleaflet: Add keydown event. 2015-06-19 09:50:24 -04:00
Henry Castro
dbc369c445 loleaflet: Use keymap to convert UNO key codes. 2015-06-19 09:32:27 -04:00
Henry Castro
bf17fde478 loleaflet: grow / shrink the text selection. 2015-06-18 21:10:38 -04:00
Henry Castro
f9b012ae45 loleaflet: grow / shrink the graphic selection. 2015-06-17 20:59:33 -04:00
Henry Castro
ac58e56de2 loleaflet: Disable Map keys when editing documents.
When the document is in editing mode, the default map
keys for zooming is disabled.
2015-06-15 22:12:30 -04:00
Henry Castro
d170ee598e loleaflet: Add graphics selection. 2015-06-15 20:44:11 -04:00
Henry Castro
cceb663a64 loleaflet: keyup != keypress different keycodes
keypress and keyup are different keycodes values
and they differ some browser, keypress is the right
charcode and keycode values.
2015-06-14 19:16:04 -04:00
Henry Castro
21035bf438 loleaflet: Mimic gtktiledviewer editing
gtktiledviewer is the reference code to enable
editing for calc, writer and impress.
2015-06-11 19:48:08 -04:00
Henry Castro
ba6663d445 loleaflet: Added onkeyup event. 2015-06-10 21:59:09 -04:00
Jan Holesovsky
73974f7397 Fix JavaScript part of the tiles invalidation.
Now it is possible to type in in some cases, but for the full functionality,
tuning together with the server is necessary.
2015-06-10 18:58:34 +02:00
Jan Holesovsky
ecfe65b37f Don't actually create the tiles until after we get them from the server.
When a tile is requested, don't create anything yet, just send the request.
Create the tile after we actually get it from the server.

This is in preparation for the cancellation of the tiles requests.
2015-06-10 18:13:34 +02:00
Henry Castro
007ebda88c Fixed cursor position. 2015-06-06 18:17:37 -04:00
Jan Holesovsky
6df02b89d2 Enable editing in master again. 2015-06-05 16:03:06 +02:00
Tor Lillqvist
391d17831d Bump minor number in this master branch 2015-06-05 16:28:49 +03:00
Tor Lillqvist
28d28dd67c Bump version after tarball 2015-06-04 14:20:11 +03:00
Tor Lillqvist
41c5359d82 Bump version for tarball 2015-06-04 14:19:48 +03:00
Henry Castro
43425c406d The keycode RETURN it is converted to click.
The keypress and keycode = 13 are converted to click event,
so Calc Application does not receive keypress RETURN, It is needed
to commit changes into cell.
2015-06-02 23:49:51 -04:00
Henry Castro
87ea674177 Convert Javascript keycode to UNO keycode 2015-06-02 23:43:18 -04:00