Silverlight - tab navigation with arrow keys - silverlight-4.0

How to cycle between controls with arrow keys.
I want the same effect as I get with Tab key.
Is it even possible?

Define order you want then handle ArrowKeys and change focus while pressing arrow keys according to your defined order.
I guess i should work that way.

Related

How to prevent focus from wrapping around?

When using keyboard navigation in the project files or variables tabs, focus wraps around from the first entry in the list to the last one, and vice-versa.
Is there a way to disable focus from wrapping around? I want navigation to stop at the top and bottom of the list.
Per https://youtrack.jetbrains.com/issue/IDEA-262817 you can disable ide.cycle.scrolling in the registry.

In react native, how can I make the keyboard show a key to "collapse" or "minimize" keyboard?

I know using Keyboard.dismiss() can make the keyboard disappear, but I specifically want to know if there is a way to add a key on the keyboard (like a minimize key, a downward triangle etc) for dimissing it? It is intended for users to see visually instead of having to try to click a white space (where I implemented Keyboard.dismiss()).
I think if you use the prop keyboardType correctly you're gonna get what you want. Take a look here with more details in what which value that can be putted in this prop does.

React Native Maps Prevent focus when marker is clicked

is there a way to disable the marker focus when it is clicked? Like I want the map view to stay as it is when I click a marker. Right now, if I click any marker the map view automatically adjust focusing on that marker. Is there a way to disable it? Many thanks
As jasongaare states in https://github.com/react-community/react-native-maps/issues/199#issuecomment-330901293, there is a moveOnMarkerPress property for the MapView component.
I guess the only way to make it possible for now is to do the LiteMode
https://github.com/airbnb/react-native-maps/blob/master/example/examples/LiteMapView.js
So far it works just fine, it does not focus anymore to the pressed Map Mark.

OSX: Move keyboard focus between textfields and buttons using tab key

I am trying to toggle between textfields and buttons on my view using keyboard's tab button. The switching between textfields work but it does not switch between buttons. The view is shown as below.I did not find enough resources online to proceed further. Does anyone know how to resolve this?
There is nothing you can do with that issue.
It turns out that in the System Preferences > Keyboard > Shortcuts there is a checkbox, where you can change behaviour of the whole system:
To move keyboard focus only between text boxes and lists
To move keyboard between any of controls
And by default first checkbox is pressed.
As an addition. By default, NSWindow assigns an initial first responder and constructs a key view loop with the objects it finds. You can also change key view loop by calling this method: setNextKeyView.
For example,
[firstTextBox setNextKeyView:secondTextBox];
[secondTextBox setNextKeyView:secondButton];
[secondButton setNextKeyView:firstButton];
[firstButton setNextKeyView:firstTextBox];
This means that for users who expect moving control focus through all controls, this will work. And for those who have disabled this feature in settings, this won't work.
You can right-click on text field, drag "nextKeyView" and drop on another text field that you want to focus next when user press tab. Look like my picture below:
To add to #mjonka's answer, To move focus between controls is dependent on user's keyboard-shortcuts settings. What could be alternate solution is to just selecting your desired action button in your xib file and setting "Key Equivalent" value field to "enter" key in Attributes inspector as shown below. Same thing can be done for cancel button by setting "Key Equivalent" value to "Esc" key.

Setting nextKeyView in IB; key view order is different when the app is run

I have a window full of text fields and buttons and I want to set its key view order in a particular way.
So, I set the initialFirstResponder to the first text field and correctly set the nextKeyView one by one for each control.
This has NO effect when running the app. When I use the Tab key to change the key field or button, it jumps differently than the order I set -- it seems nextKeyView is not working.
I tested it in another sample app, and it works great, but in this app it is not working.
If it helps, I have tab view with three tabs in my window.
dudes, I found my answer.
the problem will solve if we set initialFirstResponder of current selected Tab to the first field or button of the Tab and the root of problem is that when we use the Tab View in our window then the first responder changes to the tab controller.
I putted the answer for other guys who may face this simple problem.
Thanks all anyway.