Questions tagged as 'teclado'

1
answer

Call method when the Enter key is pressed

How to call the Send Message method when the Enter key was pressed? Code @Override public void keyPressed(KeyEvent e) { String messageSent = "User: " + writingTextField.getText(); if(e.getKeyCode() == KeyEvent.VK_ENTER){...
asked by 04.11.2015 / 17:23
1
answer

Keyboard arrows in QT

When we want to use the keyboard arrows in C ++, we use the Ncurses or conio.h libraries, depending on the operating system. But is there a way to do this using the QT libraries?     
asked by 08.05.2018 / 22:09
1
answer

Some keys are not working on my VS2015

The F1 and F12 keys 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 F5 and the project did not run. What could be happening?     
asked by 08.02.2016 / 13:56
1
answer

How do I trigger a method when the user presses the delete or return key?

In my form I have a client field. I need, when the user presses the delete or return key, a method that I have in my controller is triggered, how can I capture if one of these keys was pressed? I'm using AngularJs this is my input: <i...
asked by 28.07.2017 / 20:31
1
answer

assign a function to a key on the keyboard [duplicate]

I am creating an application for a cattle auction where it has a lot, the animal's gender, whether it is the view or the term, and the value field of the lot where it increases, while the auctioneer speaks the bid. Getting typed value manual...
asked by 26.03.2015 / 21:22
1
answer

KeyPressed JavaFX problem

I wanted to trigger an event by pressing the F12 button, but I'm not able to make it fire any action even though I created it in code. Here's an example below. F12.setOnKeyPressed(event -> { if(event.getCode().equals(KeyCode.F12)){...
asked by 19.09.2017 / 16:33
1
answer

How to disable the keyboard in C # Windows Form?

Hi everyone, I'm experiencing a problem with my application when I press the ALT key, I'm not expecting any kind of interaction through the keyboard, but even then this key only gives this error So I do not know why this error, I think it's...
asked by 17.11.2015 / 19:52
1
answer

Android - Align Layout above 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" android:layout_width="match_parent" andr...
asked by 10.09.2015 / 12:56
2
answers

Open 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 appears in Text mode instead of numeric m...
asked by 08.09.2015 / 22:45
1
answer

Event with KeyPressed Event to open another window JAVAFX

My problem is as follows, this way I'm opening the window I have a problem using the KeyPressed function. So this way my method needs the ActionEvent parameter which when using the getSource () method, returns me the button and open the window c...
asked by 18.09.2017 / 21:41