365 questions
3
votes
2
answers
90
views
JavaScript DOM manipulation in the Browser [closed]
I am trying to get an element, and element's fontSize property and update the size with keypresses. I press the up'ArrowUp' and down 'ArrowDown' but nothing happens, the fontSize property does not ...
0
votes
1
answer
133
views
Mat-Autocomplete with cdk-virtual-scroll-viewport (large data) arrow-keys didnt work
I am trying to use mat-autocomplete with large data. For the large data aspect im using a cdk-virtual-scroll-viewport with mat-autocomplete. Everything works except the Arrow-Key Navigation.
<mat-...
1
vote
0
answers
21
views
How to change focus to dropdown panel after opening dropdowns in slash command. And set one plugin as default to navigate between plugins
_getPluginListItemsDefinitons() {
const editor = this.editor;
const locale = editor.locale;
this._dropdown = createDropdown(locale);
this._commandItems = [];
...
2
votes
1
answer
157
views
How to move around in the console using the arrow keys, c and win32
I am writing a text editor in the C programming language, and I am stuck on how to allow the user to move around in the console window using the arrow keys. Here is my code:
// EDIT LOOP
void ...
-10
votes
1
answer
755
views
How can I slow down the scroll speed in Microsoft Edge using JavaScript? [closed]
In Microsoft Edge, holding the arrow down key on any web page scrolls the page down at an incredibly fast speed. Although Edge is Chromium-based, Google Chrome is not affected by this.
Here is an ...
0
votes
0
answers
69
views
Tkinter keybinding for shift cursor keys on Mac
The following keybindings are working fine on Windows, but don't execute the bound code on Mac. Are the keybindings different between Windows, Mac and Linux?
self._kw.keyboard_win.bind("&...
0
votes
1
answer
47
views
How to call a function when the function requires to move a div box when the left key is clicked?
# After writing the function I am stuck on how to call the function.
> window.addEventListener("keydown",function(e){
if ((e.keycode==37)||(e.keycode==39)){
myFunction(e.key);
> ...
0
votes
1
answer
158
views
Prevent webpage scrolling with keyboard only if an element is displayed
On a webpage, certain keyboard keys will control the scrolling of the webpage such like spacebar, arrowup, arrowdown.
I intend to prevent the user from scrolling with these keys when an overlay ...
1
vote
1
answer
298
views
Navigating combo box list by keyboard arrows
I have a combo box that shows a list of options as you type in it, however when I try to navigate through the list using the keyboard arrow keys, it selects the first option and removes the other ...
1
vote
1
answer
64
views
navigating between items that are in a flexbox when it's visible in 4 way (left, up, right, down)
i have a filter dropdown that has a search button, button activates if there is no item on the list
however the dropdown has multiple items in a line so
what i want is to be able to navigate between ...
0
votes
0
answers
44
views
Recursive Submenu Opening and Incorrect Active Class Assignment on Right Arrow Key Press
I'm currently working on a web application that has a menu system with submenus. I'm trying to implement arrow key functionality where the right arrow key should open a submenu, and the active class ...
0
votes
1
answer
2k
views
Tailwind appearance-none not working for Select tags
I need to remove the arrow of the select tag, so I follow an example on Tailwind CSS: https://v1.tailwindcss.com/docs/appearance
I checked the link to tailwind.min.css already, but it still not work.
...
-2
votes
1
answer
50
views
How can I get a div that moves using arrow keys to not be able to go off screen?
I want to make a pong game using HTML, CSS and javascript. I started with making a player and I got it to move using the arrow keys but it can go outside the screen which creates the sidebar. I want ...
0
votes
0
answers
88
views
How can I check for a down arrow in terminal input on Linux?
i can't understand how can i read the down arrow input in assembly. I need this input to pass to the next string.
i checked the register ebx and ecx and inside of them there are different values.
i ...
0
votes
1
answer
135
views
How can I disable the left and right arrow keys of Photoswipe using JavaScript?
how to disable left and right arrow keys of Photoswipe ?
I tried the following
keyboard: false,
and this code block
window.addEventListener("keydown", function(e) {
if (["...
-1
votes
1
answer
2k
views
Keyboard navigation with arrow keys in Angular
I am new to Angular.
I have one list with font-awesome symbols.
and currently I can navigate through those symbols using the tab button on my keyboard.
but I want to do the same symbol navigation ...
0
votes
1
answer
1k
views
Disable scrolling when navigating with arrows up and down
I have a serach bar where users can filter a list of products and navigate through this list using arrows up and down.The filtering and navigation work ok, but there is a side effect of using the ...
0
votes
0
answers
31
views
arrowChecker slows image loading
I incorporated the arrowChecker script for navigating between a series of webpages. Each page include an image. It works well except that I found that with arrowChecker included, the image loads very ...
0
votes
0
answers
216
views
Screen arrow keys for mobile device do not work well
I am working with the JavaScript game project. It is a snake game. I am facing with a bug. Function for keyboard arrow keys are work well. But screen arrow keys for mobile device are not work well. I ...
0
votes
1
answer
266
views
Unable to use arrow keys when focused on accordion (Wordpress)
I'm still learning about how to code for accessibility, and I'm hitting a wall on this wordpress website I'm working on that was developed by a previous developer. There's a page on our site that has ...
1
vote
1
answer
2k
views
Angular use left right arrow key to move between table cells
hope i can get some ideas here
I have a material table with a row of input fields
i would like to use left and right arrow key to move between cells instead of tab
at the moment i am able to use ...
0
votes
1
answer
473
views
AppleScript: move cursor (up/down arrow) – with repeat loop
I’m trying to write an AppleScript to insert ["some text"] above ["found text"].
Here is what I wrote:
tell application "BBEdit"
activate
find "====" ...
0
votes
1
answer
870
views
Using arrow keys in a table but having it start from the selected table cell
I am trying to use arrow keys to navigate a table.
The below code works but the problem is that it will only navigate from the last place the arrow key was used. If I click on a cell somewhere else ...
2
votes
0
answers
214
views
Navigation with arrow keys to the left does not work with input readOnly
I have built a table with 4 columns. 1 column is text and the other 3 are inputs that are set to readOnly. For this table I have written an arrowKeyCodeNavigation. The operation works so far. But if I ...
0
votes
0
answers
85
views
How to enable circular navigation on HTML Select?
I would think this is a pretty basic requirement, but I can't seem to find a single post about this.
I have a simple html select element on my page, when the user presses arrow down, the selection ...
2
votes
2
answers
756
views
jQuery next sibling that has a particular kind of child
My HTML has a container element with many sibling div elements, each of which contains a contenteditable p. These sibling div are "interrupted", however, by other div which do not contain an ...
1
vote
0
answers
192
views
a python console application executed from within vscode integrated terminal not allowing arrow keys to select list items
I have a file samlapi.py. Running the file pops up a dialog with a list of menu items on the terminal to select from. I cannot traverse the menu items using keyboard arrow keys on a terminal running ...
1
vote
0
answers
87
views
Move game screen diagonally using arrow keys
I'm creating a car game where it creates a 3D pseudo effect by moving the screen backwards and the car itself just stays still on the map, using the arrow keys. It only takes in one input at a time, ...
0
votes
0
answers
66
views
Why do my Arrow Keys stop working and the cursor just jump from button to button?
I am working on an app to do quality review of scanned books. I display two pages at a time and let the user use the arrow keys or on-screen buttons to move right or left. The arrow keys work fine ...
4
votes
0
answers
637
views
Python OpenCV waitKey() and waitKeyEx() fail to read arrow keys after using Trackbar
I'm trying to make a simple program to navigate through the frames of a video. Those frames are already extracted as PNG files. I'm using OpenCV 4.5.4.58 alongside Python 3.7.11. I already made a ...
0
votes
1
answer
495
views
html css and javascript - How can I prevent my car from going out of the screen
I'm learning front-end at the moment and i'm trying to do a project for college but i'm stuck right now. When I press left arrow key my car goes off the screen and when i press right arrow key for ...
0
votes
1
answer
575
views
How can i detect which Arrow Key was pressed last on my keyboard
I want to make a snake game in Windows Forms and dont know how i can detect inputs from a Keyboard.
I have read a few solutions and most of them look like that
private void _calendar_PreviewKeyDown(...
0
votes
1
answer
679
views
How to navigate/traverse through collection of HTML '<li>' elements using Keyboard Arrow Keys using JavaScript and keep track of the <li> element?
How to traverse through a HTML element through JS?
How to keep track of the traversed element?
How to pass an object via a function call whenever we hit the 'Enter' key?
0
votes
1
answer
909
views
Touch support for arrow clicks on React app
I am working on a React web app where I have a div of a 4x4 grid which has 16 blocks rendered in them. Where I have arrow click events for right, left, up, and down arrow. I need to add the mobile ...
1
vote
1
answer
194
views
catching VK_UP in WM_KEYDOW message not working
this piece of code in the window procedure isn't working:
case WM_KEYDOWN:
switch(wParam)
{
case VK_UP:
MessageBox(NULL, L"key up", L"&...
0
votes
2
answers
1k
views
sendKeys(Keys.ARROW_DOWN) is not working while selecting location on Naukri homepage
I am new to selenium. I am trying to automate Naukri homepage.
However, in the field location, sendKeys(Keys.ARROW_DOWN) is not working. Code is working fine till a.sendKeys("ch").
I am ...
-1
votes
1
answer
229
views
How to navigate through inputs that are in a table with arrow keys?
I am building a table using dataTables.net and dynamically created data (using dataTables.net is probably not relevant). A few of my table cells are inputs. How do I navigate through these inputs with ...
-1
votes
2
answers
83
views
Is there a way to keep drawing a square with one turtle while, at the same time, moving another turtle with the arrow keys?
I am trying to move a drawing slowly across the screen as I move another turtle with the arrow keys. The problem is that my code only makes the drawing move across the screen, not allowing me to move ...
0
votes
1
answer
86
views
ubuntu 18.04.1 in paralles desktop on mac arrowkey down and up Abnormal
When I use vscode or notepad, I want to use the key arrow up and down the button to jump to the up line or the next line, but when I press the two buttons cursor will jump to the article at the ...
0
votes
1
answer
1k
views
How to detect combined key input in C++?
Let's say you play a game on the computer, you move your character with arrow keys or WASD, if, let's say, you press and hold the up arrow key/W and left arrow key/A together, if the game allows it, ...
2
votes
1
answer
2k
views
React: accessible unordered list of buttons
I'm creating an unordered list of buttons and would like to make it accessible. (Note: I found this SO post, but it doesn't answer my question.)
My code (simplified, in React) looks like this:
import ...
1
vote
1
answer
549
views
How can I remap broken arrow key via hidutil?
I have the arrow keys of the keyboard broken so I though to use the combination Ctrl + "asdw" instead. As an example, if we want to change the down arrow key, my question is: how can I remap ...
0
votes
1
answer
307
views
How to have a fully functioning NavigationView in a .fullSizeContent window with SwiftUI
I'm trying to get my NavigationView to fill the whole window. The List should stretch from the top to bottom edge of its window. But while the List looks correct at first with .fullSizeContentView ...
-1
votes
1
answer
617
views
Adding virtual keys
Can we add virtual keys to a snake game website, like that website we can only play on the laptop because the phone doesn't have arrow up, arrow down, etc keys. So I am asking can we add virtual keys ...
1
vote
1
answer
2k
views
Arrows keys for getch in python [duplicate]
I want to capture arrow keys in python linux:
import getch as gh
ch = ''
while ch != 'q':
print(ch)
ch = gh.getch()
k = ord(ch)
print(k)
# my question is:
...
2
votes
2
answers
1k
views
Navigating out of a TextField in a GridPane using the arrow keys in JavaFX
I am making a sodoku solver program in Java with the JavaFX library. The program incorporates an interactive sodoku board consisting of a series of TextFields in a GridPane. The board looks like this:
...
0
votes
1
answer
275
views
I'm trying to make an arrow key movement system and its not working. does anyone know what is wrong with my code?
I'm trying to make a .io game with HTML5 canvas and node.js but I'm stumped on how to make the player move with arrow keys. I have been trying to use this tutorial to make the movement system and I've ...
0
votes
1
answer
397
views
How To Disable Arrow Key Navigation For Java Swing JRadioButton?
I have some JRadioButtons in my Java Swing app. After I select one button, clicking on arrow keys will navigate thru all the buttons, but I need to use the arrow keys for other purposes, how to ...
1
vote
1
answer
120
views
Why does my player movement system not work when I set the position of the image to a variable?
I'm making a player movement system with WASD keys for my multiplayer .io game in HTML5 canvas and when I added the movement system and then changed the x, y,); parameters from constant numbers like ...
1
vote
1
answer
3k
views
Changing r values for cobweb diagrams in Python
Relatively new to Matplotlib. I plotted a cobweb diagram and is now hoping to change the r values via arrow keys as the program is running. Tried to use "import keyboard" along with a "...