You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/04/22 17:21:48 UTC
[royale-asjs] branch develop updated: jewel-list: update some focus
uses to the new StyleUIBase method
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new ecbb41a jewel-list: update some focus uses to the new StyleUIBase method
ecbb41a is described below
commit ecbb41ab0e075e139d6572df2b23fd4f90ccadfc
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Apr 22 19:21:43 2020 +0200
jewel-list: update some focus uses to the new StyleUIBase method
---
.../org/apache/royale/jewel/beads/controllers/ComboBoxController.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
index 919dfd8..bd0bc55 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
@@ -123,7 +123,7 @@ package org.apache.royale.jewel.beads.controllers
COMPILE::JS {
//put focus in the textinput
if (event.target == viewBead.button)
- viewBead.textinput.element.focus();
+ viewBead.textinput.setFocus();
}
// viewBead.popup is ComboBoxPopUp that fills 100% of browser window-> We want List inside its view
@@ -171,7 +171,7 @@ package org.apache.royale.jewel.beads.controllers
list.element.classList.remove("scroll");
setTimeout(restoreScroll, 300);
}
- list.element.focus({preventScroll:true});
+ list.setFocus(true);
list.selectedIndex = goToIndex;
}
}