keyevent Questions

1

Solved

I am using KendoUI controls with JavaScript with MVC. I have a popup window create by "kendoWindow". its working fine, but when i press ESC key it will automatically close. I want to disable the ES...
Phytology asked 27/6, 2014 at 12:8

1

First I want to say that I know that there is a solution with curses. My programm is a while loop that is run every second. Every second I want to get the last key that was or is pressed. So in cas...
Myatt asked 6/5, 2014 at 18:12

1

How can I send a custom SWT key event such that it results in the typing of that exact literal character without any conversion? We are making a custom on-screen graphical keyboard that allows for...
Castillo asked 3/2, 2014 at 15:34

4

Solved

I want to intercept Tab key press in my main window to prevent Qt from switching focus. Here's what I've tried so far: bool CMainWindow::event(QEvent * e) { if (e && e->type() == QEven...
Woolly asked 10/8, 2013 at 8:20

1

Solved

I created a simple JavaFX application that receives input from the user in a TextField. I attached the KeyTyped event from SceneBuilder to the controller. My function looks like this: @FXML privat...
Matutinal asked 21/12, 2013 at 20:43

1

Solved

I have a simple form with some combos, labels, buttons and a QTextEdit. I try to catch the enter or return key with keyPressEvent, but for some reason I'm not able to. The ESC key however, that I ...
Ephrayim asked 6/12, 2013 at 9:13

3

Solved

I am doing this assignment, make a program that solves sudoku. I have a panel with a grid of SudokuTextBox extends JFormattedTextField. I have a MaskFormatter so that it only accepts one integer pe...
Stichomythia asked 10/11, 2010 at 19:36

5

Solved

I have a C# winform, on which I have 1 button. Now, when I run my application, the button gets focus automatically. The problem is KeyPress event of my form does not work because the button is fo...
Shriver asked 31/3, 2011 at 11:59

2

Solved

I have a Login page in my app where there are elements as listed: username (EditText) password (EditText) Login (Button) On pressing Login, it will land into the main screen. The intention is ...

3

Solved

I know how to listen for when the ENTER button is pressed in a TextView, as shown in the code below: textView.setOnKeyListener(new View.OnKeyListener() { public boolean onKey(View v, int keyCode,...
Book asked 29/6, 2011 at 4:47

2

Solved

The documentation for KeyEvent.ACTION_MULTIPLE says: "multiple duplicate key events have occurred in a row, or a complex string is being delivered. If the key code is not {#link KEYCODE_UNKNOW...
Heterosexuality asked 8/3, 2013 at 3:41

3

Solved

I am trying to invoke my main activity's onKeyDown() with KEYCODE_BACK, so that it behaves as if I pressed the 'back' button myself. I do that using the following code: KeyEvent goBackDown = new ...
Ivette asked 22/4, 2011 at 1:27

1

I hope this isn't a duplicate, but I've scoured the forums and have yet to find any answers. I am having issues with my java application using the Robot class to type text. The text is provided an...
Streak asked 8/2, 2013 at 5:47

3

Solved

I have a Java Swing application in the NetBeans IDE. I made a form and attached a KeyListener to my various controls as such: jButton1.addKeyListener(new java.awt.event.KeyAdapter() { public vo...
Rigel asked 5/2, 2013 at 19:1

1

How can I construct my own KeyEvent objects which perfectly (or very closely) match the ones I would receive from a KeyListener when the end-user types something? For example, I have a United Ki...
Seller asked 28/1, 2013 at 22:19

6

Solved

I am trying to catch the back button event for Android. I know there is a lot about this already on the forms, however, my code does not work as the examples given. Here is my code snippet to captu...
Particle asked 16/11, 2011 at 21:3

1

Solved

I know that this is not the first Thread about this permission, however the other ones aren't finished or don't help me. What I need is to inflate KeyEvents using Instrumentation. That works great...
Osmo asked 19/1, 2013 at 3:47

2

I am a total noob on this site so please be patient. I am trying to initiate a Video Chat/Call without any user interaction or confirmation. I found this: Uri imUri = new Uri.Builder().scheme("xm...
Varela asked 2/2, 2012 at 4:26

2

Solved

I'm finding that the delete key doesn't fire the keypress event in Chrome, while other keys work. The problem doesn't occur in Firefox, just in Chrome, why? Here is my code: document.addEventListen...
Hannibal asked 17/4, 2012 at 8:6

1

Which event should be used for key press handling key-down/key-up? It is sure that in both case the program will run successfully. But which one will be more user-friendly?
Fancyfree asked 24/10, 2012 at 13:5

1

Solved

Android provides some callback methods which help our to handle key event inside the apps. But what if I want to listen key events when my app is running at background? Eg. I want to listen for lon...
Threescore asked 9/10, 2012 at 3:56

4

Solved

Is there a way to capture backspace key press on a input[type="text"] in BlackBerry? I have tried with $('input[type="text"]').bind('keydown', function(event) { ... }); and it captures all key pres...

1

Solved

When you try to use Robot.keyPress to type a " (double quotation mark) it throws a java.lang.IllegalArgumentException: Invalid key code. How can I fix or get around this? If it helps, I am curren...
Mele asked 12/8, 2012 at 14:40

5

Solved

I'm experimenting with a bit of Scala gui programming (my first project in scala, so I thought I'd start with something simple). But I seem to have got stuck at something that seems like it should ...
Dagny asked 28/6, 2010 at 21:58

1

My app has a ListView and an EditText sitting below it. For some reason, the TAB key doesn't trigger the onKeyListener. All other keys I'm handling (DEL, ENTER, DPAD_UP/DOWN/CENTER) are received ju...
Weathering asked 6/5, 2012 at 0:45

© 2022 - 2024 — McMap. All rights reserved.