]>
git.wh0rd.org - tt-rss.git/blob - lib/dijit/_FocusMixin.js.uncompressed.js
1 define("dijit/_FocusMixin", [
4 "dojo/_base/declare", // declare
5 "dojo/_base/lang" // lang.extend
6 ], function(focus
, _WidgetBase
, declare
, lang
){
9 var _WidgetBase = dijit._WidgetBase;
15 // Mixin to widget to provide _onFocus() and _onBlur() methods that
16 // fire when a widget or it's descendants get/lose focus
18 // We don't know where _FocusMixin will occur in the inheritance chain, but we need the _onFocus()/_onBlur() below
19 // to be last in the inheritance chain, so mixin to _WidgetBase.
20 lang
.extend(_WidgetBase
, {
21 // focused: [readonly] Boolean
22 // This widget or a widget it contains has focus, or is "active" because
23 // it was recently clicked.
28 // Called when the widget becomes "active" because
29 // it or a widget inside of it either has focus, or has recently
37 // Called when the widget stops being "active" because
38 // focus moved to something outside of it, or the user
39 // clicked somewhere outside of it, or the widget was
47 // This is where widgets do processing for when they are active,
48 // such as changing CSS classes. See onFocus() for more details.
56 // This is where widgets do processing for when they stop being active,
57 // such as changing CSS classes. See onBlur() for more details.
64 return declare("dijit._FocusMixin", null, {
66 // Mixin to widget to provide _onFocus() and _onBlur() methods that
67 // fire when a widget or it's descendants get/lose focus
69 // flag that I want _onFocus()/_onBlur() notifications from focus manager