Using Arrow Keys to navigate menu in Unity if disabled in Input Manager - unity3d

I am trying to code a vertical 3 button menu in which you are able to navigate with arrow keys + WASD. I currently have it set up using the Event System, and I can navigate it fine using W and D. However, I would like to use the up-arrow key and down-arrow key to navigate it as well.
Currently in my Input Manager, my Vertical axes is set to only W and S. If I add in up and down as alt negative button and alt positive button, then my menu works as expected. However, I am using the arrow keys to fire a weapon and using WASD to control my player in the game, so while the menu is working with this setup, my player controls will be broken.
Is there a way to programmatically bind up and down in the project settings when the menu is open and unbind then once the menu is closed?

Related

How to undo maximize view in Unity?

Pressing Shift+Space will maximize the view (for example, the Scene, Game or Inspector View) but in order to go back to the previous layout, I need to press a ⋮ in the top right corner and tick off a Maximize option.
Is it possible to do it using a keyboard shortcut?
I am using Personal version of Unity 2021.3.9f1 (LTS) on Ubuntu 22.04.
You can press SHIFT+SPACE again, and it can go back to the previous layout.

Moving around pause menu UI with unity's new input system incredibly inconsistent

I've switched to using unity's new input system. I have a bunch of buttons in a pause menu that's a UI canvas you can navigate through with the arrow keys and it all functions as expected, only on some key presses. To move from one selected button to the next I have to press the arrow key anywhere from 1-10 times for the selected button to change. I have all the UI Input Module settings on default. I've tried messing around with the repeat delay and repeat rate to no avail. In the gif I'm pressing the same arrow key at a consistent rate of about 3-4 presses a second. Input Module Settings

How I can disable MRTK's keyboard shortcut

I am currently working on MRTK and I import an input field to receive type-ins. However, when I press the key w,s,a,d, the camera will move around while I am typing. In the API it says:
Input simulation is enabled by default in the profiles that ship with MRTK. You can simply click Play button to run the scene with input simulation support.
Press W, A, S, D, Q, E keys to move the camera.
To keep simulated hands in the view, press T or Y key
How I can disable these shortcuts?
To do that, please navigate to Edit → Project Setting → Input Manager, and then modify the Alt Negative Button and Alt Position Button property under the Horizontal and Vertical Axes.

Eclipse toggle show/hide panels

Is there a way to show/hide various panels in Eclipse?
For example, shift-alt-p opens the Package Explorer panel in my setup, but then to close the panel I have to mouse over and close it manually.
Ideally one could toggle show/hide panels in Eclipse with keyboard shortcuts set via prefs > general > keys
Tough on the wrist to go keyboard-mouse-keyboard-mouse all day.
Perhaps I'm missing some magic combo, please enlighten if you have the Nirvana to spare.
Press Ctrl+F7 you will get below pop up.
Traverse or cycle through the views you want to close by pressing F7 key. After selecting the view to be closed in the above pop up release Ctrl key.
Then the view to be closed will be activated.
Go to Window->Preferences type keys in the search box. Check whether any short cut key is assigned to close part. Refer below picture,
In my case it is assigned to Ctrl+W. Once the view is activated press this short cut key to close the view. If any short cut key is not assigned to close part then you can assign new short-cut key for this.
Click on Binding text box(Refer second picture) and assign your own short cut key.

How to navigate up/down using keyboard home keys in Eclipse's suggestions pop up window?

When Eclipse shows a popup for code completion, how do you change the highlighted option using the keyboard home keys? Currently, if the thing I want is third or fourth on the list of suggestions, I have to use the mouse to select it, or use the arrow keys. Is there a way to use the keyboard home keys/ shortcuts with ctrl/alt to do this?
Arrow keys always work for me. Can you be little more specific as to what perspective, editor, etc?
I get a code completion popup when I press Ctrl + 1 in the Java editor. From then on, I can use the arrow keys to navigate.
I'm assuming you want to select from the code completion menu by X for up and Y for down. Go to Preferences > Keys and bind the commands Line Up and Line Down to X and Y, respectively. Make sure that in the When drop-down you select In Windows.
Note that after the settings are applied, X (Y) also makes the cursor go one line up (down) in the source editor. Personally, I use X = Ctrl+P and Y = Ctrl+N which means I can navigate lines and select entries from the code completion menu without lifting my hands off the keyboard.
Unfortunately, these bindings don't work with other pop-up lists in Eclipse, e.g. quick outline (Ctrl+O) or quick access (Ctrl+3). I'd love to find out how to bind these too.