X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Fkeyboard-focus-manager.js;h=fbdf7265997a1b7b1e0a831db39b547f55a2b893;hb=90925e62266ce32a326ba2458e9c3d1107244218;hp=465e249d07bb8a9ab3c4e751f253e0dc450143ac;hpb=5d49d819924da76f96f22845210abe89a7ade187;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js b/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js index 465e249..fbdf726 100644 --- a/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js +++ b/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js @@ -11,14 +11,14 @@ It also allows you to set an actor that is used to high light the focused actor. The application is required to help the manager when moving focus. - +![ Focus Manager ](../assets/img/focus-manager/focus-manager.png) ### keyboard-pre-focus-change Connect to the pre-focus-change call back as follows: ``` // listen for pre-focus change events -dali.keyboardFocusManager.connect("keyboard-pre-focus-change", this.preFocusChanged); +dali.keyboardFocusManager.on("keyboardPreFocusChange", this.preFocusChanged); // example call back handler @@ -39,7 +39,7 @@ myApp.preFocusChanged = function( currentFocusedActor, proposedActorToFocus, dir } } -dali.keyboardFocusManager.connect("keyboard-pre-focus-change", myCallback) +dali.keyboardFocusManager.on("keyboardPreFocusChange", myCallback) ``` KeyboardFocusManager makes the best guess for which actor to focus towards the given direction, but applications might want to change that. @@ -58,7 +58,7 @@ myCallback( originalFocusedActor, currentFocusedActor) { } -dali.keyboardFocusManager.connect("keyboard-focus-change", myCallback) +dali.keyboardFocusManager.on("keyboardFocusChange", myCallback) ``` @class KeyboardFocusManager