Skip to main content

Questions tagged [keyboard]

A text input device. Use this tag to ask programming questions related to typing, keyboard hiding and more.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
18 views

Alternative row colors in a Android Custom keyboard

I am trying to create custom keyboard which is working fine, however, I want to give two colors for alternative rows. I have keyboard view xml and key_background and key_background1 defined, the code ...
Rupesh Nath's user avatar
0 votes
2 answers
41 views

Flutter getting the keyboard height before it render

i am creating chat app using flutter framework and i am trying to add emoji keyboard the problem is that I can't switch between the main keyboard and emoji keyboard smoothly is there any suggestions ...
Maher Gh's user avatar
-1 votes
0 answers
22 views

Swiftui keyboard not appear

I try to make a textfield get focus, and i set focus state to true in on appear, but i only see cursor in the textfield(not blink), and the keyboard not appear too,so weird @FocusState private var ...
Frog Tan's user avatar
0 votes
0 answers
39 views

How to skip dialog printed to terminal when pressing Enter

I have a function that prints the string given to it in a slower way (one letter per 0.05 second): def tobyTalks(sentence): skip = False for letter in sentence: print('\033[1;34m' + ...
taha's user avatar
  • 21
0 votes
2 answers
21 views

How to prevent ionic 4 capacitor keyboard from closing when clicking another input, after an input is already focused

I'm going to link the APK. Click the Login button to get to the issue :) https://drive.google.com/file/d/1BKol_X_FhISZw6bnuwV6PN7fopAa0xlt/view?usp=drive_link Basically, if you select the "Enter ...
Colin's user avatar
  • 13
0 votes
1 answer
11 views

Keycode for copy/paste/cut

I wanted to use keyd to map some keys to copy/paste/cut in a layout-independent way, and I saw some keyboards (typematrix) that have keys for copy/paste… But unfortunately, I can't find any keycode to ...
tobiasBora's user avatar
  • 2,075
2 votes
2 answers
47 views

iPhone keyboard dissapear and appear again when switching between fields with onTapGesture(hideKeyboard)

I have this code in Swift (iOS 16+) and I have a login screen into my app, where the user needs to enter an email and password. I also have a .onTapGesture method on the GeometryReader { ... } ...
Petr Jelínek's user avatar
-1 votes
1 answer
67 views

How to Display a Virtual Keyboard as a Popup in MAUI? [closed]

I am working on a .NET MAUI application and need to display a virtual keyboard as a popup. I have attached an image for reference: I upload Image reference I am looking for a built-in library or a ...
Muhammad Tanzeel's user avatar
0 votes
0 answers
24 views

How to avoid the focus gain of my virtual-keyboard over the text fields

I have made a virtual keyboard with tkinter in python. When i click one of the letters my tkinter window gains the 'focus' and therefore my focus will not be anymore in the text field so the program ...
JUAN ESTEBAN MONROY CASTELLANO's user avatar
0 votes
0 answers
28 views

USB HID Consumer Control using LUFA

I am using the LUFA keyboard demo, and for regular keystrokes it is working just fine. Unfortunately I cannot get media keys to work. My research online has pointed me towards modifying my HID ...
00728M's user avatar
  • 13
0 votes
2 answers
98 views

.Net Maui Android cannot hide keyboard

UPDATED - Trimmed down user control: using CommunityToolkit.Maui.Core.Platform; using CommunityToolkit.Mvvm.Input; using System.Diagnostics; namespace GSL.Presentation.CustomControls; public partial ...
George M Ceaser Jr's user avatar
0 votes
0 answers
14 views

The iOS keyboard pops up in the middle and then to the bottom

Sometimes when I go from one page to another, the keyboard pops up from the middle, and then when the page is fully displayed, the keyboard falls down again, and this situation doesn't happen every ...
Kiwi Zhang's user avatar
-3 votes
0 answers
31 views

Python / How detect all keys pressed?

from ctypes import windll key_codes = { "VK_LBUTTON": [0x01, "left MButton"], "VK_RBUTTON": [0x02, "right MButton"], "VK_CANCEL": [0x03, &...
Goder YT's user avatar
0 votes
0 answers
40 views

Trigger the keyboard IME via javascript

I am trying to build a visual/virtual (HTML/CSS/JS) keyboard and need to handle IME because of Chinese. If I change the value of the input, IME is not showing If I fire a KeyboardEvent keydown, IME ...
Léal's user avatar
  • 61
0 votes
0 answers
21 views

chrome kiosk - virtual keyboard disable keys windows 11

I have a kiosk pc running windows 11 and use on screen keyboard from windows. on the keyboard shortcut like ctrl + w and windows 10 is possible, can i disable these on any way?
Klaus B's user avatar
  • 21
1 vote
2 answers
51 views

Checking for a Keypress to Pause a Program Midway through a loop in Python

I am currently creating a web scraper to collect data for a project I am working on. However, the scraper I am using uses a Selenium Webdriver and Pyautogui, meaning that I can't really use my ...
Stephen Cook's user avatar
1 vote
0 answers
49 views

Python get current keyboard / input device

I want to create a python script to read the keyboard input of one of my old keyboards and converts the input into a macro output. All i managed to do is reading the Input of either all devices ...
Dynastray's user avatar
1 vote
0 answers
23 views

Using Python to toggle the RGB lights in my steelseries gear

I have a bunch of steel series gear: mouse, pad, speakers, keyboard. All have RGB lights. When I go to sleep I have to manually turn off these lights. I would like to automate this process with a ...
kindasorta's user avatar
0 votes
1 answer
27 views

Solved | Word: Shortcut to Customize Keyboard Window | Equivalent to VBA 'wdDialogToolsCustomizeKeyboard'

I frequently assign shortcuts to different templates, but it's cumbersome to always navigate through "File" > "Options" > "customize ribbon" > "customize ...
Josomeister's user avatar
0 votes
0 answers
18 views

How to remap R_SHIFT to Up Arrow and Menu to Down Arrow on Ubuntu?

I recently move to ubuntu from win10, and my keyboard(Hator rockfall mecha tkl 2) software supporting only in win10, i used this software for remap key(R_SHIFT -> up_arrow; menu -> down_arrow) ...
Mac's user avatar
  • 1
0 votes
0 answers
23 views

How to Fix Layout Issues with Keyboard Appearance During SwiftUI Screen Navigation?

I have a SwiftUI app that uses a legacy text field (UIKit one) and performs navigations with HostViewController. Here is the major issue I am facing: I am pushing a screen onto the current screen, and ...
Nver Abgaryan's user avatar
-2 votes
1 answer
53 views

Combine more than one Unicode characters to form another new character like Glyph or Conjunct in Android Studio

I am trying to create a keyboard in my native language where some characters are formed by combination of other characters. Here is the code snippet that I have tried <Key android:codes=&...
Rupesh Nath's user avatar
0 votes
0 answers
23 views

IME window (a custom Keyboard) over not above navigationbar in android

I want IME window (Keyboard window) over the navigation bar. I have customized Keyboard which want to be over not above the navigationbar. I tried application_overlay however it is cover whole screen ...
Aman Srivastava's user avatar
0 votes
2 answers
57 views

How to execute a function before key press?

I'm trying to append "🗿🍷" to everything I write as a challenge to live a week with that enabled. It's quite easy to send "🗿🍷" after the fact with the keyboard module, but what ...
Maksiks's user avatar
  • 118
1 vote
1 answer
46 views

How do I read all keys pressed in nim since the last call to a function, without needing to press enter

I need to read keys from stdin without blocking, and without only recieving them when a newline is pressed. The way i would like it be formatted is a sequence, where each item is a keypress or ascii ...
Bobson Tobson's user avatar
1 vote
1 answer
33 views

python add a hotkey but stop the keypresses from passing through to other apps

Let's say I want a python program to bind to Shift+f. If you open up notepad and in there press Shift+f, then a capital F will appear. This means notepad received the keypresses. If you instead press ...
No Name's user avatar
  • 194
1 vote
0 answers
29 views

Jetpack Compose - keyboard focus - how to identify an element as the "last in the group"?

We have a composable that includes a few buttons, and this composable is used in a lot of places. I want to specify the order of focus within our composable, but I want to say that one of them is &...
Kristopher wolff's user avatar
0 votes
0 answers
19 views

Capacitor Android - Floating Keyboard

Im building a fullscreen android app using Capacitor and React JS. However I think in a typical fullscreen app in android, the keyboard will be floating by default as presented in apps like Fun Run or ...
Nazri AMZ's user avatar
0 votes
0 answers
35 views

Problem in python with pynput.keyboard module

I work with Anaconda and Spyder. I have a Python code that does some web scraping, and it worked fine until I updated Anaconda and Spyder a few days ago. I'm having trouble with simulating writing or ...
Carlos Mario's user avatar
-1 votes
2 answers
72 views

I've set a hotkey in Python and it doesn't work, how do I set up a working hotkey?

I am trying to make a program that will click a button really quickly for personal needs, but right now I've only come so far as to click the left button. I am trying to make a hotkey to turn it off, ...
Carny pex's user avatar
0 votes
1 answer
21 views

Jetbrains Rider: touching Macbook's built-in keyboard or touchpad changes input mode to overwrite

I am using two versions of Rider (2023.3.5 and 2024.1.2) on my new Macbook (2021, 16-inch). Both have the same issue since I installed them, that any type of input done with its built-in keyboard or ...
XVCINE's user avatar
  • 1
0 votes
1 answer
21 views

Open HTML file everytime USB RFID reader detects a card (then input the RFID into one of the forms of html)

I want to make a script that runs in the background, so that everytime my RFID reader detects a card, it will open an HTML file. My RFID works as a keyboard emulator. Optionally, I want to input the ...
Tyven Christopher's user avatar
0 votes
1 answer
29 views

By default electron js has to show me the top menu when I touch the alt key

by default electron js has to show me the top menu when I touch the alt key, but I want to disable it but nothing works for me, I don't understand what to do Here is my code: app.whenReady().then(() =&...
Frederic Jasmin's user avatar
0 votes
0 answers
10 views

Is there a way to detect both mouse, keyboard events in the same java class?

Is there a way to detect both mouse, keyboard events in the same java class? I failed in putting them in same class. I want a simple short solution showing the transfer of control to any one from ...
Amitava Guha's user avatar
0 votes
3 answers
92 views

Flutter Best way to create form with a button on the bottom?

Here is what I'm trying to achieve: On a smaller device, where all the input fields can't be displayed on a single page, the form should be like this: But on a bigger screen, where all the Input ...
Marios Plenchidis's user avatar
0 votes
2 answers
66 views

Flutter what is the best way to design a form with a button on bottom?

Edit 2: I have created a new post where I explain better what I want to achieve Flutter Best way to create form with a button on the bottom? I have been searching for so long to find a good solution ...
Marios Plenchidis's user avatar
0 votes
1 answer
93 views

Overriding AOSP keyboard

Error: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.inputmethod.latin.CarIME" on path: DexPathList[[zip file "/data/app/~~6CnZ_EwlgHaoEjQXjHx4lA==/com....
Aman Srivastava's user avatar
0 votes
1 answer
27 views

How am I meant to use the keyboard python module to create hotkeys using custom functions with parameters?

I've been trying to make a thing that presses a button a certain amount of times when a hotkey is pressed. It's not been working well. Here is the code: import keyboard def moveArrow(times: int): ...
Zane Sites's user avatar
1 vote
1 answer
40 views

I'm using the keyboard module for python, how can I refer to arrow keys?

I need to press and release the right arrow key for a little project, but I don't know what text to use for arrow keys. I've tried to say stuff like "right arrow", "K_RIGHT", and ...
Zane Sites's user avatar
0 votes
1 answer
89 views

.NET MAUI Execute Button Command Upon <Enter> by User

I just wanted to know, is there any possibility to bind the keyboard input to executing a specific button command in .NET MAUI? I've seen one can apparently use keyboard accelerators for the menu ...
user25033240's user avatar
0 votes
0 answers
20 views

Is there a way to set a custom keyboard layout for Ubuntu Frame

I'm building a kiosk based on Ubuntu Frame that will need to startup a Firefox browser, however I also need to disable the ctrl keys so I created a keyboard layout that seems to work fine outside of ...
Scala Peritus's user avatar
0 votes
3 answers
105 views

Keyboard not appearing after swipe-back gesture when returning to a screen with TextField using GetX

I'm developing a Flutter application using GetX for state management, and I'm facing an issue where the keyboard does not appear when returning to a screen with a TextField after navigating away and ...
Naklov's user avatar
  • 5
-1 votes
1 answer
50 views

How to break out of if statement at any point with key press

I'm trying to make a bot for a game (no native leaderboard or competitions) where the bot will execute a sequence of moves based on time and position. Sometimes these sequences will be very long and I ...
Vee's user avatar
  • 1
1 vote
0 answers
15 views

My java program not responding to key press/release

I have a program that detects mouse movements and draws line according to the path of the mouse pointer tip when the mouse is dragged. NEXT I tried to make the program detect key events, the code ...
Amitava Guha's user avatar
1 vote
1 answer
76 views

Windows API: Why didn't PeekMessage get the keyboard event I want here?

I am writing a program which responds to the Alt+B keyboard shortcut from the user. The program keeps printing the current time and Alt+B toggles the colour of the text printed. I try to use ...
Limina102's user avatar
  • 1,001
0 votes
0 answers
40 views

Hide navigation bar at AOSP codebase level without touching custom navigationbar application for Automative application

I have an automative application where I dont have access to application layer (custom application like navigation bar etc). Custom navigation bar has been developed. I want to disable this custom ...
Aman Srivastava's user avatar
0 votes
0 answers
21 views

what is the key code value for speaker and amplifier in matrix keyboard?

Can someone point me to the list of key codes that come from getKeyCode() for Amplifier and Speaker which were used in landline phones example: 7 -->"KEYCODE_0" 8 -->"KEYCODE_1&...
Karthick Chowdappa's user avatar
0 votes
1 answer
53 views

How to define Ctrl - Q on German keyboard on C?

I am writing a vim-like text editor on C in Ubuntu in vim. Ubuntu is on WSL on Windows. I am working on a German keyboard. I am following a tutorial and I need to define ctrl + Q combination to stop ...
Jane's user avatar
  • 1
0 votes
1 answer
38 views

Wrong Key Code detected in JavaScript (KeyZ instead of KeyY when Y is pressed)

I'm encountering an issue with keyboard events in JavaScript. When I press the ctrl+shift+y key combination, the event.key property correctly reports Y, but the event.code property incorrectly reports ...
smolo's user avatar
  • 21
0 votes
1 answer
24 views

Curtsies Input Python Library Detetct Keypress Outside Of Terminal Linux

I am using the Curtsies library to detect key presses but it only works when I'm tabbed into the terminal when I want to to work even when I'm not in the terminal. Note: I am also using the pyautogui ...
PancakeCoder's user avatar

1
2 3 4 5
256