Jürg Lehni
|
10d5de3ed6
|
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
|
2013-05-27 12:48:58 -07:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
d5a9a48db3
|
Also expose space bar state through Event#modifiers.
|
2012-11-07 01:02:48 -08:00 |
|
Jürg Lehni
|
96e1765e4f
|
Do not implicitly use getTool() getter since it creates tools when none exists.
|
2012-10-30 11:43:06 -07:00 |
|
Jürg Lehni
|
93ba19f7e2
|
Define key-code for tab key.
|
2012-09-30 14:05:51 -07:00 |
|
Jürg Lehni
|
18d44689fa
|
Fix white-space in code example.
|
2011-11-12 23:56:25 +01:00 |
|
Jürg Lehni
|
d9ba90ea2d
|
Remove white space.
|
2011-11-12 17:15:04 +01:00 |
|
Jürg Lehni
|
78d1ce1540
|
Make new events work properly for key handlers.
|
2011-11-11 20:12:29 +01:00 |
|
Jürg Lehni
|
a2358a0fc0
|
Also fire key events for modifier keys. Closes #52.
|
2011-09-18 12:51:03 +02:00 |
|
Ben Ogle
|
7ebd4a17bd
|
Adds other keycodes for command keys in different browsers.
- 224 for firefox
- 93 for the right command key in WebKit browsers.
|
2011-08-25 18:53:30 -07:00 |
|
Jürg Lehni
|
2851d8e403
|
Define Base#toString() as a mean to render Base objects as object literals, and use it for Key.modifier and onFrame() event objects, through Base.merge() conversion.
|
2011-07-07 14:10:02 +02:00 |
|
Jürg Lehni
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +02:00 |
|
Richard D. Worth
|
ac39873693
|
Whitespace. Removed all trailing whitespace from .js files
|
2011-06-30 06:01:51 -04:00 |
|
Jürg Lehni
|
4a344c8fad
|
Clean up forgotten @lends statements.
|
2011-06-22 23:58:50 +01:00 |
|
Jürg Lehni
|
7cd749e63d
|
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
|
2011-06-22 23:56:05 +01:00 |
|
Jürg Lehni
|
a1196c9f74
|
Change focusing behavior: Try getting the view from the current event target in mousemove event, and temporarily focus views so keyboard events are handled too.
|
2011-06-22 08:29:53 +01:00 |
|
Jürg Lehni
|
0fecbe50bc
|
Define View#isVisible() and use it to only handle key events if the focused view is not hidden.
|
2011-06-20 22:51:39 +01:00 |
|
Jürg Lehni
|
c8a1bf4fce
|
Have views redrawn in keyboard handlers if content has changed.
|
2011-06-19 23:17:55 +01:00 |
|
Jonathan Puckey
|
4455b1c33c
|
Documentation: fix Key.isDown example.
|
2011-06-02 14:48:21 +02:00 |
|
Jürg Lehni
|
29967153c3
|
Clean up TODO comments...
|
2011-06-01 10:49:43 +01:00 |
|
Jonathan Puckey
|
17fcb923ff
|
Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits.
|
2011-05-30 19:42:17 +02:00 |
|
Jürg Lehni
|
9d00541987
|
Clean up PORT comments.
|
2011-05-29 19:20:10 +01:00 |
|
Jonathan Puckey
|
1520cad144
|
Documentation: capitalize basic types in @ tags.
|
2011-05-27 21:21:49 +02:00 |
|
Jonathan Puckey
|
4015b022ad
|
Docs: use @true tag in boolean return descriptions and add Key.isDown param options.
|
2011-05-27 18:43:27 +02:00 |
|
Jonathan Puckey
|
65ee63546d
|
Add Key documentation.
|
2011-05-23 18:02:46 +02:00 |
|
Jürg Lehni
|
26269d394a
|
Rename project/ProjectView -> ui/View.
|
2011-05-17 13:29:07 +01:00 |
|
Jürg Lehni
|
cfe968d30e
|
Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document.
|
2011-05-16 13:33:15 +01:00 |
|
Jürg Lehni
|
78a9f9afe9
|
Let Keyboard handlers know which view should receive keyboard focus.
|
2011-05-16 00:17:37 +01:00 |
|
Jürg Lehni
|
e79d890432
|
Add #toString() to Event#modifiers.
|
2011-05-08 15:50:17 +01:00 |
|
Jürg Lehni
|
6593c07127
|
Fix more key handling bugs and make Key.isDown() work again.
|
2011-05-08 15:28:35 +01:00 |
|
Jürg Lehni
|
450fadfcbf
|
Fix issues with keys that fire both keydown and keypress events, such as space.
|
2011-05-08 15:23:32 +01:00 |
|
Jürg Lehni
|
742c9da822
|
More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key.
|
2011-05-08 15:16:41 +01:00 |
|
Jürg Lehni
|
b26caee702
|
Improve key event handling, work in progress.
|
2011-05-08 13:43:52 +01:00 |
|
Jürg Lehni
|
4e6e855461
|
Change '// TODO: Port' comments to '// PORT:'.
|
2011-05-07 14:18:27 +01:00 |
|
Jonathan Puckey
|
41120cf4d9
|
Various small code cleanups.
|
2011-05-02 12:23:42 +02:00 |
|
Jürg Lehni
|
4d999d57e2
|
Replace all type converting string compares with ===, !==.
|
2011-04-28 13:23:17 +01:00 |
|
Jürg Lehni
|
6468732d96
|
Some changes to Key code, rename alt to option to go with Scriptographer, and check for paper.toolt to exist since it caused errors when reloading a page.
|
2011-04-28 08:49:56 +01:00 |
|
Jürg Lehni
|
ccbdb2abe3
|
Make preventDefault() work on IE too.
|
2011-04-27 12:41:52 +01:00 |
|
Jürg Lehni
|
77ad25ffba
|
Clean up port comments.
|
2011-04-26 17:47:30 +01:00 |
|
Jonathan Puckey
|
e52ed9ae36
|
Key handlers: allow the user to prevent the default behaviour of key events.
|
2011-04-25 18:11:01 +02:00 |
|
Jonathan Puckey
|
1efb69e46f
|
Key: small change to a todo comment.
|
2011-04-25 17:42:37 +02:00 |
|
Jonathan Puckey
|
778997ec18
|
Simplify Key further and fix ToolEvent#getModifiers.
|
2011-04-25 17:38:40 +02:00 |
|
Jonathan Puckey
|
404bbac3a5
|
Key: remove logging statement.
|
2011-04-25 17:30:24 +02:00 |
|
Jonathan Puckey
|
5d15c3dfef
|
Simplify ToolEvent#getModifiers() & small cleanup in Key.
|
2011-04-25 17:26:58 +02:00 |
|
Jonathan Puckey
|
a96bb326f4
|
Some more simplifications in Key.
|
2011-04-25 17:16:45 +02:00 |
|
Jonathan Puckey
|
95bfebf64b
|
Simplify Key a bit.
|
2011-04-25 17:08:08 +02:00 |
|
Jonathan Puckey
|
2e43fb0997
|
Key: add type to the key event.
|
2011-04-25 14:57:06 +02:00 |
|
Jonathan Puckey
|
05a138bc7b
|
Implement onKeyDown / onKeyUp & Key#isDown(key).
|
2011-04-25 14:52:45 +02:00 |
|