Hi All,
I have a similar problem to this, I don't want buttons on a touch screen grabbing focus away from where the text is supposed to be written. There is an onFocusChanged in the ComponentStateListener, but since this is for abstract keyboards with lots of buttons that I currently use by the action and TextKey Value. I would prefer a different way to do this. So basically I want to prevent a large number of buttons from ever grabing the focus? I have tried focusTraversalPolicy="$bxml:null" but does not seem to work. Anybody got any ideas on how to prevent buttons from changing the focus when clicked? Some sort of NotFocusable flag? Regards, Mark. From: Jeffrey Law [mailto:jeffreylaw...@hotmail.com] Sent: Tuesday, 18 February 2014 10:20 PM To: user@pivot.apache.org Subject: RE: Disable Component Focusable Properties Hi Roger, I think I found the roof of the problem. As per what you suggested, in the sample stock_tracker_window.bxml I tried to assign an bxml:id to each container so that I call the setFocusTraversalPolicy(null) to prevent the focus goes to the other components in this case the TableView. <TablePane bxml:id="pane1" styles="{padding:8, horizontalSpacing:6, verticalSpacing:6}"> : <SplitPane bxml:id="pane2" splitRatio="0.4"> : <ScrollPane bxml:id="pane3" horizontalScrollBarPolicy="fill_to_capacity" verticalScrollBarPolicy="fill_to_capacity"> : <StackPane bxml:id="pane4"> <TableView bxml:id="stocksTableView" selectMode="multi" styles="{showHorizontalGridLines:false}"> I found that only when I call pane1.setFocusTraversalPolicy(null) which is TablePane and the rest are all fine. But the strange things is I have no where to catch this exception, anyway there's a way solved the issue. Thanks, Jeffrey