18 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 1e2a4a8323 Normalize license headers of the webodf.js source files
* remove @license tag (to prevent Closure compiler keeping the comment)
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released webodf.js
* separate license header by empty line from following content
2014-06-02 12:19:05 +02:00
Friedrich W. H. Kossebau fa62c38767 remove no more needed returning of the class constructor at end of class files
runtime.loadClass(...) no longer expects that eval(fileContent) yields
the constructor, and a few loaded files rely on that (e.g. all singletons/namespaces),
so let's be consistent
2014-05-22 13:31:51 +02:00
Philip Peitsch 158f873ab8 Refactor HyperlinkClickHandler to cleanup event binding
Move control of event bindings from SessionController to
HyperlinkClickHandler so bindings will be updated whenever modifier is
changed. This allows some simplification as HyperlinkClickHandler can
simply use the KeyboardHandler.Modifier.
2014-03-17 22:39:08 +11:00
Philip Peitsch dbb56a1ab9 Normalize keyboard events involving modifiers
For keys that are also modifiers (e.g., Ctrl), different browsers +
platforms may report the modifier flag as leading or lagging the
keypress event. For example, pressing the ctrl key in FF on Linux will
report (ctrlKey:false)in the keydown event, while Chrome on Linux will
report (ctrlKey:true) in the keydown event. For these specific cases,
normalize the modifier flag so it is always the set to true.

Fixes issue #322.
2014-03-11 23:33:34 +11:00
Philip Peitsch dabbd2739f Provide a mechanism for forcibly overriding a keybinding
SessionController needs to override the backspace key at all times, and
if the document is not editable, simply return true. The easiest way to
do this is to switch out the keybinding, and forcibly clobber the existing
keybinding when leaving edit mode.
2013-12-24 13:49:28 +11:00
lli cde721f758 Updated the SessionController to use the same virtual selection in both edit and read only mode. 2013-12-19 10:39:42 +11:00
lli dca79408b0 Hyperlink usability improvement
Current behaviour:
Left click causes navigation in both edit and view mode

After the change:
Same as current behaviour in view mode.
In edit mode, left click will just move the cursor to desired position. In order to navigate, user need to hold control key and then click
2013-12-17 17:59:17 +11:00
Jos van den Oever 4147c6aa5d Add straightforward type annotations.
Also add a check to updateJS.js to avoid hanging when calculating the dependencies.
2013-12-02 13:01:55 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Friedrich W. H. Kossebau 3b94a58e99 Add keyboard shortcut to create an annotation 2013-10-16 17:20:32 +02:00
Philip Peitsch 93e4ec1264 Add missing letters to KeyboardHandler 2013-09-06 03:53:09 +10:00
Lu Li 7f1734b569 handle Clear key on Mac machine 2013-08-02 09:01:45 +02:00
Jos van den Oever 967e5c0ba0 Update closure compiler and fix ensuing problems. 2013-07-24 17:56:39 +02:00
Lu Li 03915b2896 handle Tab key 2013-07-24 12:08:38 +02:00
Lu Li c75f303cfb handle shortcuts for applying bold, italic & underline 2013-07-24 09:58:17 +02:00
Philip Peitsch 1d7757a43d Add support for select all (ctrl+a or cmd+a) 2013-07-22 16:47:41 +02:00
Lu Li fea0502aed refactor keyboard handling 2013-07-15 12:13:22 +02:00