Most voted "keyboard" questions
Tag referring to keyboard activities (physical or virtual), both addressing information input/output issues and specific settings.
Learn more…90 questions
Sort by count of
-
13
votes6
answers35893
viewsKeyboard buffer cleaning after scanf
I’m having trouble with the job scanf();. When reading two or more values, the later values are not read. I’ve already tried: __fpurge(stdin); After reading, but in this case I need to enter after…
-
9
votes1
answer429
viewsHot key for "surround with" in Notepad++
The Phpstorm editor has a hot key for the "surround with" command, someone knows if Notepad++ has this feature and which hot key?
-
8
votes2
answers608
viewsHow to hide Keyboard in Cordova by pressing "Go" or "Done"
I have a form in my app, and I would like that after filling, if the person pressed Ir or Done, the keyboard would disappear. Has anyone ever been there? Or knows how to solve?…
-
8
votes1
answer642
viewsHow do I hold an action key until I release the key
In video game games the action displayed when pressing a key is smooth, continuous and immediate. However when implementing a routine that animates a character according to the key pressed using the…
-
7
votes2
answers1998
viewsHow to close a Jframe using keyboard events?
I have a Jframe that I want to close when I press the Esc key... Well, I did that: public Cadastro() { addKeyListener(this); And then that: public void keyTyped(KeyEvent evt) { if(evt.getKeyCode()…
-
6
votes2
answers201
viewsError in keyboard events in Allegro
I’m doing a work of my course using Allegro as indicated. I need to capture the events of loose keystrokes on the keyboard, so I used the following: al_wait_for_event(evento, &ev); if(ev.type ==…
-
6
votes2
answers1173
viewsSpace between Edittext and keyboard on android
I wonder if it is possible to put a margin to space the edittext keyboard so it is not so close: The xml of how I am declaring Edittext: <EditText android:id="@+id/editTextNome"…
-
4
votes1
answer541
viewsType of android keyboard, text and number
There’s how I make the android keyboard stay with two types, in case I wanted numbers and letters. I tried using android:inputType, but it didn’t work. Do you already have a way to solve this? Thank…
-
4
votes1
answer2059
viewsWhat is the best way to capture keyboard shortcuts?
Currently I use the keypress approach to capture the Alt pressed and the key that the user wants, however using the Pressed alt can cause compatibility problems in some browsers. For example,…
-
4
votes1
answer368
viewsDifference between methods to close Jframe and Jdialog after keyboard event
I need to implement in a desktop application built using swing, a way for the JFrame main close the application when user click on ESC, and the JDialogs daughters of this JFrame, close only…
-
4
votes1
answer1892
viewsHow to call one function inside another in Java for Android?
Every letter the user types in EditText, invokes the function TextWatcher that leads to a Text-to-speech. So if it writes 'c', the app returns a line saying 'c'. if it then enters 'a', returns 'a'.…
-
4
votes1
answer142
viewsWhat happens to RAM if a key is pressed on the computer for a long time?
What happens to RAM if a key is pressed on the computer for a long time? Example: computer has been turned on and a key is pressed these bytes are being read by the processor and written in memory,…
-
3
votes3
answers1135
viewsBootstrap navbar dropdown focus control menu after click
Situation I have a navbar on my site, and in it I have several dropdown menus / megamenus. I need that when clicked on this dropdown, the user has the option to "scroll" the page up and down with…
-
3
votes2
answers103
viewsHow to replace a keyboard with a Uipickerview?
I have a program, that an excerpt from the form, in case a UITextField, that needs to be filled in. But instead of a keyboard, I need a UIPickView, that already has the options for filling. Then the…
-
3
votes2
answers1012
viewsDoes using a virtual keyboard help security?
Does the use of virtual keyboards (similar to Google’s search) prevent typed data from being collected by Keyloggers? If yes there is a virtual keyboard that can indicate?
-
3
votes1
answer1168
viewsLock keyboard and mouse in C#, but keeping the execution of a method
I need to block the use of keyboard and mouse in form while it will perform a certain function of the system, on which I am placing the call of the blocking method in the event of Load of the form,…
-
3
votes1
answer2213
viewsOpen mobile keyboard automatically
Currently I have the following block attached to user action. $(".class-botao").focus() When the user interacts with the page the mobile keyboard is displayed normally. However in my application…
-
3
votes2
answers956
viewsPush a button through the keyboard
Hello, within the system I am developing the user can change a registration that is in the database. I wonder how I can do so that instead of the user can save the changes just by clicking on the…
-
3
votes1
answer113
viewsError, Loop when pressing ENTER with e.Keycode
I’m trying this code: private void txtEmgSearch_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { this.btnEmgSearch.PerformClick(); } } The command itself works normally, but…
-
3
votes2
answers1865
viewsHow to create a shortcut within a page?
To add a new item in my database there is the button Add, however I would like to add a shortcut for you to perform the same function as the button. For example when the And in any question in the…
-
3
votes2
answers984
viewsSimulate keyboard typing programmatically in c
The problem: I need my C program to write like a keyboard. When I open google, for example, and click on the search field I would like to keep showing several 'a'. As if the key was pressed on the…
-
2
votes1
answer963
viewsassign a function to a key on the keyboard
I’m creating an application for a cattle auction where has lot, sex of the animal, whether it is the view or the term and the value field of the lot where increases while the auctioneer speaks the…
-
2
votes2
answers2095
viewsOpen numeric keypad automatically
I have a page with a numeric input with autofocus: <input type="number" placeholder="Informe" ng-model='leitura.leituraatual' required="true" autofocus="true"> The problem is that the keyboard…
-
2
votes1
answer1208
viewsCall method when Enter key is pressed
How to call send message method when key Enter was pressured? Code @Override public void keyPressed(KeyEvent e) { String messageSent = "User: " + writingTextField.getText(); if(e.getKeyCode() ==…
-
2
votes1
answer1105
viewsAndroid - Align Layout above the keyboard
I have the following layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/view_login"…
-
2
votes1
answer692
viewsHow to disable keyboard in C# Windows Form?
Good Guys, I’m facing a problem with my application when I press the ALT key, I’m not expecting any kind of interaction through the keyboard, but even so exclusively this key gives this error So I…
-
2
votes1
answer1313
viewsSome keys are not working on my VS2015
The keys F1 à F12, are not working. I use a DELL notebook, with windows 10. I put the cursor on top of a class, I gave F12 to go to the function and nothing. I gave a F5 and the project did not run.…
-
2
votes3
answers3550
viewsHow to make your Android virtual keyboard visible/invisible while Tedit is in focus
I use Delphi XE7, wanted to know how to treat this issue, Seto the focus on TEdit, it opens the virtual keyboard Android, Press the back it closes the keyboard and the focus stays on the TEdit, but…
-
2
votes1
answer56
viewsText selection via keyboard
Have you stopped to imagine how to select a text from a specific part of your navigation? For example to select inside a box input we use directional arrows like this: shit +, shit +, shit + and…
-
2
votes1
answer390
viewsAction on the back button when the keyboard is active
I am trying to use the back button action to show a menu in my application, with the onKeyUp method. Once the back key was clicked, the menu should immediately appear. In my application I work with…
-
2
votes1
answer166
viewsHow to initiate a method when the user presses the delete or Return (delete) key?
In my form I have a client field. I need that when the user presses the delete or Return (delete) key, a method that I have in my controller is triggered, how can I capture if one of these keys was…
-
2
votes1
answer364
viewsProblem Keypressed Javafx
I wanted to fire an event by pressing the F12 button, but I’m not able to make it fire any action even having created it in code. Here is an example below. F12.setOnKeyPressed(event -> {…
-
2
votes1
answer92
viewsArrow keys on QT
When we want to use Keyboard arrows in C++ we use the Ncurses or conio. h libraries, depending on the operating system. But there is a way to do this using the QT libraries ?
-
2
votes1
answer298
viewsProblem with Keypressed Event to open another JAVAFX window
My problem is the following, this way that I am opening the window I have a problem about using the Keypressed function.Because this way my method needs the Actionevent parameter that when using the…
-
2
votes1
answer165
viewsHow to know the direction of the mouse?
I would like to make a program that indicates to which position the mouse is moving (right, left, high, low, right and high, right and low...), but I can’t get a logic that gives me this result.…
-
1
votes2
answers473
viewsHow to call the Horizontal Keyboard when clicking on Edittext?
Explanation: I have an application that has a field of type EditText used for observation, of which it is too small, because there is no room for it. If I open the screen in "horizontal orientation"…
-
1
votes1
answer484
viewsHow do I display the keyboard using Cordova or phonegap?
I’m using Cordova/phonegap and would like to know: How do I display the keyboard (in android OS) as soon as the user enters, on a page that only has a text field?
-
1
votes1
answer3345
viewsOK button of the Android Keyboard event
Good afternoon guys again asking for help. I wonder how to pick up the event from the OK button on the keyboard. Example if I have a login and want to click ok it has the same effect as the login…
-
1
votes1
answer1225
views -
1
votes1
answer686
viewsEnable android keyboard "Search" key
here again! In some apps we can notice a button on the keyboard with the drawing of a magnifying glass.. that keyboard, or button, if it is necessary to be enabled in the application? I tried…
-
1
votes1
answer160
viewsHide keyboard when choosing text in Autocomplete
I’m using elements of the type Autocomplete in the project, so that when the user type part of the text they search, it presents the suggested options for the same. For this, I am using the…
-
1
votes0
answers43
viewsWhat are all the native keyboard and inputs that exist on iPad iOS 8?
I need to do a mapping of all types of keyboard that exists on iPad iOS8. I need to know what are all the ways to input data on iPad. How do I get that!?
-
1
votes1
answer1990
viewsHow to disable some C#keys?
I would like to know how to disable/block some keyboard keys while the program is running or even cancel the lock? For example: If I disable/block the entire keyboard or just allow x key it would…
-
1
votes1
answer97
viewsQml Textfield - numeric keypad
I’m trying to use a TextField who receives only numbers QML. I’m using the property inputMethodHints to make the device display only the number pad. Works well on Android but when I run on iOS it…
-
1
votes0
answers155
viewsJquery and keyboard on android and IOS
i am having difficulty capturing which character the user pressed when using smartphone with ANDROID/IPHONE. I use the jquery keyup event, but the answer is always Undefined or 229. Someone knows…
-
1
votes2
answers752
viewsHow to create an event where when the user presses the space key something happens?
For now I have only this bit of code: personagemPular.on("keyup",function(){ I wanted to trade this keyup for pressing space. And I’m also using a area text in HTML to receive keyboard entries, as I…
-
1
votes0
answers25
viewsVirtual keyboard, superimposing or compressing elements
I need help in the following situation. I have some Activity done, with several moments of interaction with Edittext and Button. On certain screens, Layout compresses when opening the virtual…
-
1
votes1
answer420
viewsDisable virtual keyboard Cipherlab 9700 Collector via PHP
I created 2 pages in PHP, to run on the collector: Cipherlab 9700 He’s running normally and doing what I want, the only thing I’m not liking is that he keeps opening the digital keyboard and with…
-
1
votes2
answers69
viewsText box to determine amount of digit usage
Below follows the code I am trying to limit the use of letters in the text box, the exception of the comma, but it occurs that the comma can be typed a hundred times, I would like the comma to be…
-
1
votes2
answers1238
viewsProblems with virtual keyboard typing Firemonkey Android
I have an application running on Android devices (5, 6 and 7) and presents a problem typing words - different from autocomplete - because it simply repeats letters randomly. This same problem…