From 68585276a015e99711061f33b4bb9d49aa3b0a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 8 Oct 2014 18:32:55 +0200 Subject: [PATCH] Rename ui folder to event. --- src/{ui => event}/Event.js | 0 src/{ui => event}/Key.js | 2 +- src/{ui => event}/KeyEvent.js | 0 src/{ui => event}/MouseEvent.js | 0 src/paper.js | 8 ++++---- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/{ui => event}/Event.js (100%) rename src/{ui => event}/Key.js (98%) rename src/{ui => event}/KeyEvent.js (100%) rename src/{ui => event}/MouseEvent.js (100%) diff --git a/src/ui/Event.js b/src/event/Event.js similarity index 100% rename from src/ui/Event.js rename to src/event/Event.js diff --git a/src/ui/Key.js b/src/event/Key.js similarity index 98% rename from src/ui/Key.js rename to src/event/Key.js index 3057bea3..bdb922aa 100644 --- a/src/ui/Key.js +++ b/src/event/Key.js @@ -139,7 +139,7 @@ var Key = new function() { DomEvent.add(window, { blur: function(event) { - // Fire key-up events for all currently pressed keys. + // Emit key-up events for all currently pressed keys. for (var code in charCodeMap) handleKey(false, code, charCodeMap[code], event); } diff --git a/src/ui/KeyEvent.js b/src/event/KeyEvent.js similarity index 100% rename from src/ui/KeyEvent.js rename to src/event/KeyEvent.js diff --git a/src/ui/MouseEvent.js b/src/event/MouseEvent.js similarity index 100% rename from src/ui/MouseEvent.js rename to src/event/MouseEvent.js diff --git a/src/paper.js b/src/paper.js index 89087301..0bdab168 100644 --- a/src/paper.js +++ b/src/paper.js @@ -112,10 +112,10 @@ var paper = new function(undefined) { /*#*/ include('view/CanvasView.js'); /*#*/ if (__options.environment == 'browser') { -/*#*/ include('ui/Event.js'); -/*#*/ include('ui/KeyEvent.js'); -/*#*/ include('ui/Key.js'); -/*#*/ include('ui/MouseEvent.js'); +/*#*/ include('event/Event.js'); +/*#*/ include('event/KeyEvent.js'); +/*#*/ include('event/Key.js'); +/*#*/ include('event/MouseEvent.js'); /*#*/ include('tool/ToolEvent.js'); /*#*/ include('tool/Tool.js');