FAQ Database Discussion Community

disable the keyboard FnLock at startup

The FnLock key is activated at boot on my wired keyboard. Is there a way to disable it? Unfortunately, pressing the FnLock key is not visible through showkey nor keytouch. it is really annoying because all the F1... keyx are remapped to unwanted actions like closing the window....

iOS - Automatically Have Keyboard Toggled On ViewController

I have a view in my app where the user has to enter information in a textfield. Instead of them clicking into the text field and toggling the keyboard, I would like to have the textfield already editable with the keyboard preloaded there so the user can immediately start typing....

How to hide keyboard without animation (or speed up this animation)

I have in my app Navigation Controller and Tool Bar. In Tool Bar is Bar Item which through action "show detail" shows Table View Controller. When I click on cancel and this Table View is closed, but keyboard waits until Table View Controller is completely closed. I'd like to close...

How to keep cursor of a UITextField in focus after dismissing keyboard?

I am trying to dismiss the OS keyboard and keeping the cursor of the UITextField still in focus, I am trying to do this because I am building a custom stickers keyboard.. So the problem is that after I call the resignFirstResponder, the keyboard gets dismissed, witch is a wanted...

How can I trigger a keydown event from code in JavaScript?

I tried to put down a shape of Tetris with setInterval, and I had a function implemented that with keydown pressed, if it can, the shape will bi down 1 block, but I want do that every second... So, how can I trigger a keydown event in code to reuse...

why is continuing android keyboard after than memo max length in firemonkey android app?

why is continuing android keyboard after than memo max length? My Memo max length 120 characters but android keyboard is continuing. How does android keyboard finish input after than memo max length? Note: delphi firemonkey android application....

How to detect software keyboard was displayed on another apps on iOS?

I'd like to know how to detect software keyboard was displayed on another apps on iOS. Situation is below: Showing alert dialog with OK button on our app. If user taps OK button, 'App Store' and our app's page will be displayed. User shows software keyboard on App Store. User...

Android hardkey keyboard

I have hardkey dialpad through which I want to enter number as well as alphabets, like a old dial pad mobile phone. Now I want is, that when I enter text in edittext, a small keyboard or fragment should pop up showing all options possible right next to the edit...

Memory issues with UIImage Animation Image Caching

I've been banging my head against this for days now and just can't get to the bottom of it. Basically i have the keyboard extension which uses a UICollectionView to display animated UIImages. When it's running and i switch to another app then switch back to the keyboard i'm getting...

How to change the functionality of a button so that it can work as the backspace button

Okay, so I have a Compaq laptop [American keyboard]. It is a few days that the backspace button is broken - I mean, it is totally popped off. It ought to be replaced but it is hard to find it out. Now, I was wondering whether or not there was...

How to restart android InputMethodService

I am developing a soft keyboard for android. I want to restart the Input Method Service from settingsAcitivty. Is there anyway I can do that?

Packer: Creating a vmware box with with non-US keyboard layout

I went throught the packer / atlas tutorial and got everything working, that is, I managed to build a vmware box via packer build template.json. I am fine with having everything in English (e.g. menus, help files, ...) but I need to use a keyboard with a non-US layout (German)....

Raspberry pi kernel 3.2.27 no keyboard detected on boot

I'm trying to cross-compile a driver for Raspberry Pi. The driver works in kernel 3.2 so I downloaded the 3.2.27 raspberry pi's kernel. I compiled the kernel as follows: make -j3 ARCH=arm CROSS_COMPILE=<dir>/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- make -j3 ARCH=arm CROSS_COMPILE=<dir>/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- modules make -j3 ARCH=arm...

Game keyboard input and events

I'm working on a little game engine and can't decide how to deal with keyboard input. So far, I have been handling keyboard input by catching WM_KEYDOWN and WM_KEYUP messages from window procedure, however this seems to me as not a great solution to handle keyboard input. I really love...

Want custom keyboard to ONLY be used for MY APP and restore previous when app loses focus

I made this "custom keyboard" by following the wonderful outline in this link AND NOT USING ECLIPSE. I used Android Studio (AS) 1.1.0. Here's a screenshot from my device: The only problem is that the procedure requires changing settings for Language and Input AND ALSO replaces the keyboard FOR ALL...

Know default keyboard on android

I want to know the default keyboard chosen by the user in Android. I know I can access the list of enabled input methods using the InputMethodManager, but I want to know which one is the user currently using. So far, I've tried to get the current input method subtype:...

Global keyboard function in Autohotkey?

This script "auto-presses" E while holding it down. $e:: While GetKeyState("e","P") { Random, r, 50, 250 sleep r Send e } return Is there a way to globally call this function for any key? For example: Holding A, will auto-press A and Z will auto-press Z, etc. Without manually assigning...

How to add a listener to the ios keyboard Backspace Button

In my iOS app i have 4 input pins X-X-X-X and what i want is if the user taps backspace, the value of my pin box will be deleted in an order from right to left.

Detecting input keys (Python 3.4.2)

This is probably pretty simple, but I can't find the answer anywhere. I basically want some code that detects different key presses (enter, left etc) and then saves the type of key in a variable.

MFC Custom Keyboard DLL Accessed from Application Dialog Box

The overall goal is to be able to access a pop-up keyboard through an application that I am making in MFC. I have created a dialog box with an empty text field. I would like to be able to click the empty field and have an onscreen keyboard to enter...

Resign Keyboard when Enter Key is Pressed in Swift

I have tried the following code but for some reason whenever I press the enter key on the keyboard, the keyboard does not resign. Why doesn't this work? func trynaReturnKeyboard -> Bool { firstTextField.resignFirstResponder() secondTextField.resignFirstResponder() return true } ...

iOS custom keyboard with horizontal sliding

I'm creating a custom keyboard in iOS, and so far I haven't had too many obstacles except trying to create horizontal sliding like the the standard keyboard has for the emojis, for example. I only need to create two "pages", where the iOS standard keyboard has 9 or so. I'm...

How to lock keyboard to Simplified Chinese Handwriting?

I want to lock my keyboard to just simplified chinese handwriting. How do I do this? The problem is that I am trying to create a Chinese quiz app in Xcode 6 using swift and I want the quiz-takers to write in the character to match the English word using...

Make the input wait for mouse or keyboard - Assembly Language

I fixed my program, but now the loop seems to be stuck. Whenever I press u or d, it is stuck, but the mouse part works :) ; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h CLEAR MACRO MOV AX,0600H...

TabHost bar is above the keyboard when input data in android

In my app I use the tabhost to create a menu bar like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <FrameLayout android:id="@android:id/tabcontent" android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="0" /> <FrameLayout android:id="@+id/realtabcontent" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> <TabWidget...

Capture “field +” keystroke from 10-key pad

I'm migrating a legacy application from an AS400 to the web. All of the core users of the legacy app use the "field+" key on a 10-key pad to tab between fields. So, I need to capture that keystroke under the web application as well and use it in place...

iOS - Playing Tock sound for custom keyboard

I am trying to play the Tock sound for my custom keyboard. What I have tried: [[UIDevice currentDevice] playInputClick]; and NSString *path = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID); AudioServicesPlaySystemSound(soundID); AudioServicesDisposeSystemSoundID(soundID); and AudioServicesPlaySystemSound(0x450); and NSString *soundFilePath = [[NSBundle mainBundle]...

Detecting multiple key presses in C# and XNA 4.0

I want to detect if a specific set of keyboard keys are being held down at once in C# and XNA 4.0. I'm doing so with the following code: KeyboardState keyState = Keyboard.GetState(); if(keyState.IsKeyDown(Keys.S) && keyState.IsKeyDown(Keys.K) && keyState.IsKeyDown(Keys.I)) { //Do something } This code detects if the user is pressing...

Done key not showing up on keyboard

I am making an Android app and want the done key to show up on the keyboard when the user is typing into the keyboard. This is the XML code for the EditText: <EditText android:id="@+id/answer" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:gravity="center_horizontal" android:textColor="#ffffff" android:layout_marginBottom="113dp" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:imeOptions="actionDone" /> I...

Is there an option to have both soft and hard keyboards active?

I am developing a IME keyboard which will have a automobile dial pad as the input handler in android. More clearly, the dial pad turns decide which alphabet to select.if the dial pad is pointed to "a" and then click the center button of the dial pad, it selects alphabet...

Toolbar above keyboard Android

I´m trying to put two views on my Activity, but I just need show them when the Keyboard is open. How can I do that? I was looking for a tutorial or something but I find more about iOS than Android. Also I put a toolbar as the last one...

What data can a HID device receive?

I am designing a USB keyboard with special capabilities. What information can such a HID device receive from the host? Can I via USB: Read data from a form on the screen? Find out what OS the user is on? Find out if there's been an error message? Even 'know'...

NSInvalidArgumentException: unrecognized selector sent to instance | SWIFT

I realize this question has been asked many times, but it seems to be caused by many different things and is very situational. My trace: 2015-02-27 16:20:06.289 RTApp[43486:1122681] -[RTApp.conversationVC keyboardWasShown]: unrecognized selector sent to instance 0x7f866a766830 2015-02-27 16:20:06.291 RTApp[43486:1122681] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RTApp.conversationVC keyboardWasShown]:...

Detect keyboard on windows 7 using C#

I have been looking for a way to either detect a touchscreen device (when it uses the pointer device driver instead of a touchscreen display driver) or to detect when a keyboard is present from within C# & WPF. Please note that this is under Windows 7 embedded, not windows...

Visual Basic 2013 - Pressing ALT gets me out of code

I just installed my Visual Basic and this is a problem I couldnt find an answer to. Everytime I press ALT it gets me out of code, and because I use SHIFT+ALT to change keyboards a lot while writing code, this is really disturbing to have to click in code...

Replace inputAccessoryView of keyboard in UIWebView in Swift

I've been looking for days for a simple answer but I cannot seem to find it. I want to find and replace the inputAccessoryView of keyboard attached to my UIWebView if the accessory view exists on the keyboard. I want to replace it so I can have my own Prev...

Java KeyEvent.getKeyCode() return a virtual key or ASCII?

I want to create an array of all keys on the keyboard. How many KeyCode are they ? KeyEvent.getKeyCode() return ASCII or Virtual Key?...

C# numeric onscreen keyboard

I'm developing app for tablet with Win 8.1. I've got some TextBoxes with numeric input only and I need to popup numeric onscreen keyboard instead of standard one when entered. There's InputScope for WinPhone. Exists anything similar for Win 8.1?

Swift ios move text field when keyboard is shown

I am new to ios/swift and not sure what to do when it comes to text fields / keyboard. When I click on a textfield the keyboard blocks/covers it, so I cant select it or any other text field bellow it. So what is the best solution for this? Beside...

Send Function key with xvkbd

How can I send a function key (like F11) with xvkbd? I cannot find anything on the internet and the man page only shows keys like Control or ALT. I know the command will start with xvkbd -xsendevent -string ..., but I don't know how to complete it.

How can I change keyboard output to diagonal arrows in Linux? (↖↗↘↙) (SOLVED)

(I am running Linux Mint 17) Hello all, using xmodmap, I would like to make my keyboard type the characters ↖ ↗ ↘ ↙ I know how to do up, left, down, and right arrows (↑ ← ↓ →) already, such as this up arrow example: xmodmap -e "keycode 25...

PyKeyboard Fn Key Support

Does PyKeyboard support the Fn Key? I have looked at it and didn't seem to find an attrtibute that may refer to it or it is just that it had a different name.

Swap out a custom inputView for the standard keyboard in iOS

I have a custom inputView for a particular textfield, and it works well. However, I cannot discern how to dismiss the view and get the regular keyboard back. (I have a SWAP button right next to the TextField.) I tried setting the textfield's inputView to nil, but that did nothing....

Developing an audio game with Qt?

I just released an audio version of a game for the blind and the sighted. I developed the game in C++/Qt because that's the language/framework I know the best, and because this is my first audio game, I want to stick with what I know best. I don't know if...

How to create a text editor in Assembly language?

So far, I have a created a program to read the arrow keys and move the cursor around the screen. First the user must enter a 0 to start, and will be able to move around while getch() != 27 (ESC). However, the cursor doesn't move at all. model tiny...

Presenting just a subset of emojis on the keyboard on iOS apps

I am making an app where I use the "People" emojis as avatar faces and the "Food and drink" emojis for, well, food and drink icons. I would like to use the regular keyboard for presenting the emojis for user input, but I would like to present only these two...

Finding possible key combination of a char regarding current keyboard layout

How can I find a possible key combination of a char regarding to current keyboard layout for example; lets say my keyboard's caps lock is off So in that case for char "A" key combination should be Shift + A that was easy. how about non ascii chars or non...

Keyboard is not shown up after came from android default contact page in my app

I have one button called "Invite Paricipants". When i tap on it, my app will goes to android default contact page. After selecting contact, i am calculating the emails in it. If i found no email then, showing edit text to enter email. There i am using following code editText.setOnFocusChangeListener(new...

Android get pressed key on keyboard

I would like get the pressed key on the keyboard, for all edittext etc.. For example I would log the pressed key in my test application. How can do that ?...

Customising the keyboard system wide for new language in iOS 8

From iOS 8 it is possible to add custom keyboard from our application which can be used system wide. I need to create such a keyboard which can be used to input custom characters(a new language). I have these characters as images. How can I use these images to input...

text validation on wizard droid

I am using Wizardroid to add items to my main list view, the wizard contains 3 "pages" where in each one i have multiple edittext fields. i need to have text validation to the input since the fields cant be empty, therefore I used "addTextChangedListener". when the user enters text...

In custom iOS keyboard detect the app

How to detect in which app my custom keyboard used and show different button? E.g. in Twitter I would add @ to string I post into input field and in Reddit /r/

Objective c keyboard opens unwillingly

I have a "layer builder" object which creates different views and returns them after initialising them. The problem is, whenever i press on one of these created views, the keyboard opens up and i can't understand why. This is how my layer builder is coded: @interface LayerBuilder : NSObject <VENTokenFieldDelegate,...

Angular: add HTML markup to string depending on keyboard input

I have an inputfield and I would like to print the input to the screen while I'm filling in the inputfield. However I'd like to scan the input text, to print certain words bold. So for example, if I'm typing: "Hello how are you?" I want it to be printed...

Custom webview keyboard issues

So adapting code form this thread UIKeyboardAppearance in UIWebView and TomSwift's awesome answer, I got about 99% of it working. In the iOS 7 simulator, everything appears to work just fine. However in iOS 8, when the keyboard first appears, the < > Done bar is white. When I tap...

iOS Bring UIView up before keyboard?

I have two UIViews inside my UIView. Here is my view: On textfield focused, keyboard is shown and keyboard hides my textield. I want to move whole TextField View up before keyboard. I've found code example here on stackoverflow: iPhone Keyboard Covers UITextField This is the code: - (void)textFieldDidBeginEditing:(UITextField *)textField...

Programatically detecting / changing custom keyboards

Is there any way to programatically detect installed keyboards and/or change the keyboard to a custom keyboard from within your app? As in, if I wanted to show a toolbar above the text keyboard with shortcut buttons to commonly-installed custom keyboards, could I a) detect the keyboard is installed, and...

How would you open a Dialog when an edit box is selected? MFC 2005

I would like to be able to create an onscreen keyboard to popup whenever an edit field is selected. I am using MFC Visual studio 2005 (C++ based). Below is my code so far: void CTestHarnessDlg::OnEnChangeEdit3() { CKeyboard Dlg; Dlg.DoModal(); } When I run the Dialog box and click on...

iOS 8 Swift : How to keep the keyboard displayed when the UIAlercontroller is presented modally?

The context is pretty simple, there is a UIViewcontroller with a textfield to enter a phone number. The textfield is in editing mode with keyboard. When the number is entered, the user can tap a button which displays an alert controller. As the alert is presented modally it covers the...

How to move up a modal UIView inside of a UIViewcontroller (StoryBoard)

i've got a UIView, dragged of Object Library, inside of a UIViewcontroller created by StoryBoard. Inside of this UIView, I put two Text Field to grab user name and password, and one button to log in. How can I move only this View when the keyboard appears? I'm able to...

Keyboard Keys to Paste Text with AutoHotKey

I am using AutoHotKey software to change the use of some buttons. It helps a lot especially if you want to open programs without having to find the shortcuts and click on them. All I want now is to save a specific text (with paragraphs) in some F keys. For...

Keyboard input is displaying twice in Processing

I am putting together a Processing sketch where users input text via the keyboard, text is saved to a text file and printed, and later it's manipulated and saved as PNG to a Tumblr account. I had a keyPressed event initialising saving as text file etc. When users hit the...

Can I use GetAsyncKeyState() outside of the main() function?

I'm writing, just to get confidence with the programming procedures, a win32 application that responds to keyboard input. To do so I'm using the GetAsyncKeyState() function. At first I wrote all my code in the main() function, and all seemed well, it worked. So I decided to complicate things, but...

Unity3d - Input.GetKey returns true more than once

I want to move my object on scene using keyboard inputs. To do this work, I create an empty game object and attach a .cs file to it. Code of this .cs file is below : void Update() { if (Input.GetKey ("up") ) { Debug.Log("up"); } else if (Input.GetKey ("down")...

Is there way to hide some keys in the Android Soft Keyboard?

I am trying to get away from creating a custom keyboard. I was wondering if there was a way to hide a key in the default Android Soft Keyboard. For example, I have an EditText field that requires unsigned decimal numbers. But whenever the keyboard pops up, the "-" sign...

how to dismiss already opened keyboard when popover appears ios

In my iOS project, I have a form which contains various text fields. Some text fields are edited by keyboard and some by picker view which is placed on popover. When I go on filling text fields, without dismissing it and then if I click on popover text field keyboard...

brain freeze - cant catch keystrokes with javascript

I know its really simple, but why doesn't this code alert on key presses? Tried with both Chrome and Firefox. <html> <head></head> <body style="height: 100%; margin: 0px; padding: 0px;"> <div style="height: 100%;" id="main">sds</div> <script> window.onload = function() { var m = document.getElementById("main"); m.onkeydown = function(event) { alert("keydown!"); }; m.focus(); };...

Function not running when return pressed

I have a textfield, when something is typed in the textfield and "return" on the keyboard is pressed, the keyboard should hide. But it doesn't.. Here is the code I am using: import UIKit class EditTableViewController: UITableViewController, UITextFieldDelegate { var product: Product? @IBOutlet weak var productImageView: UIImageView! @IBOutlet weak var...

Keyboard arrows ul li menu to ONLY work when menu active

I am having some trouble with my jQuery code-snippet, I am not able to make it work naturally (i.e. from a user-experience point of view). For example, when I toggle open one menu (and the other ones are hidden i.e. display: none;), the keys up/down (38/40) actually work, but once...

why is function is not being called?

The textFieldShouldReturn function is not being called at all: there are no errors but the keyboard does not respond at all. My case is different from How to hide keyboard in swift on pressing return key? as in my case nothing is happening at all and other cases are in...

Specific Keyboard for my app

I am working on app having input of different language. Is it possible to create separate language keyboard and show it on demand? If yes then how?

Display the alternate UIKeyboardType

I would like to immediately display the alternate view 2 of the defaultUIKeyboardType (instead of requiring the user to tap 123); it is the one that shows punctuation marks. Is there any way to code this?

Dismissing keyboard from textfield inside tableviewcell [duplicate]

This question already has an answer here: How to dismiss keyboard iOS programmatically 11 answers I have a custom tableViewCell which has a textfield inside. How to dismiss keyboard when tap any place outside the textfields? Do I have to look through all cells use [cell.textView resignFirstResponder]?...

How to make keyboard dismiss when i press out of searchbar on Swift?

I try to make my searchbar on swift, but i have a problem to dismiss keyboard on screen when i pressed out of searchbar. When i try with textfield it work perfectly fine with this code. override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { self.view.endEditing(true) } It work when i...

Multiple keys with WPF KeyDown event

I'm working with WPF KeyDown event (KeyEventArgs from Windows.Input). I need to recognize when user pressed F1 alone and Ctrl+F1. private void Window_KeyDown(object sender, KeyEventArgs e) { if (e.Key==Key.F1 && Keyboard.IsKeyDown(Key.LeftCtrl)) { MessageBox.Show("ctrlF1"); } if (e.Key == Key.F1 && !Keyboard.IsKeyDown(Key.LeftCtrl)) { MessageBox.Show("F1"); } } My problem is that when I...

How can i change action of the button “return” on the keyboard on Xcode?

i need to change the text of the button "return" on my keyboard,and i even need to change its action. The action should be a new paragraph. Can you help me?

Java Append Key Input to String

For my current project I need to create a custom text box that gets each key pressed and adds it to a string. I'm constantly updating the method that retrieves the key a user is pressing and then I add it like so: public void addCharacter(String c) { String before...

Primefaces keyboard language support

I want to integrate the Primefaces < p:keyboard > into my application, but i need to load different layouts based on the user locale. Now, the keyboard component have an atrtibute called lang that I expected that will do exactly what I need, but it seems that it's not for...

Opening the Windows 8 touch keyboard

Does somebody know how open the "windows 8 touch keyboard" from an SWT application? I want to open the "touch keyboard" when the SWT input get focus, like other native applications do. Perhaps there is a particular "style" to use, when instantiating the Text class? Something like: text = new...

android - design custom keyboard

I want know what is the best way to design keyboard like this First Problem I face in positioning (Del , Clear ) buttons I design linearlayour(vertical) with weightsum 2 , each button 1 but they dont full the whole view Second Problem Del function , I need to delete...

Get keyboard size on iOS 8 not working with external keyboard

Been looking at several SO post now, but none seem to help me. Just want a UITableViews bottom constraint to be set so that the keyboard never is on top of the tableview. Seems impossible in iOS 8. It work when using normal soft keyboard, but when removing it in...

python changing keyboard language in Mac OS X

I wrote python software that requires both german and english input. Currently, I am using the Mac shortcut cmd-space to quickly change keyboard layouts, but I need to do this hundreds of times, which slows things down. Since I know exactly when English vs German input is needed, is there...

How to make all textfields close keyboard on return?

I am currently learning Swift and have some TextFields in my application. Now I want the user to close the keyboard if he presses the return key in a TextField or taps anywhere on the screen. Currently I add the same code in all of my controllers which I do...

Swift - Get keyboard input as the user is typing

I have an app in swift, where the texfield is located at the bottom of the screen, and when the user tries to type anything, the keyboard covers the textfield, so the user is unable to see what he/she is typing. To solve this, I would like to get the...

Keyboard and scrollviews

I have an activity with a form. I put all views in a ScrollView because when the keyboard opens, I would scroll through the fields. When the keyboard opens, the first field goes over the top of the scrollview ad becomes unreachable. This is the layout: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"...

Android EditText imeOptions making the actionSearch act like actionDone?

I have a weird bug. I have an EditText, and I'm performing a search with a TextWatcher, when I type 3 letters and above I am performing a search. Until recently I had a normal EditText, and I want to have a Search Icon in my keyboard so I added...

Typing || on my keyboard

I want to know how I can write those two lines || in Eclipse and/or in Android studio. I never figured out how to do this i always copied them out of the internet- -> very uncomfortable.

Scan the keys in lwjgl

I have this game where I use the standard WASD keys as input. Though not all the keyboards have a QWERTY layout. For instance, when I use an AZERTY keyboard, the WASD is a bit hard to use with the left hand. I would like that no matter his keyboard...

Problems with keyboard functions?

I am having some trouble with the return key on the keyboard executing code. I have tried in the past and the following code worked perfectly fine: func textFieldShouldReturn(textField: UITextField) -> Bool{ textField.resignFirstResponder() valueOfLetter() return true; } But, for some reason, there is an error on the line valueOfLetter. Here...

How to mask keyboard interrupt using IMR in 8086?

I would like to disable keyboard interrupts, by masking it in the IMR. I'm not really sure how to access it, and change it? As I realize, it's on the IRQ1 line, so the bit 1 should be 0....

Programmaticaly pressed Alt + Enter not working

There is code: keybd_event(VK_MENU, 0, 0, 0); keybd_event(VK_RETURN, 0, 0, 0); Sleep(200); keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0); keybd_event(VK_RETURN, 0, KEYEVENTF_KEYUP, 0); First line would press ALT, Second line would press ENTER (RETURN), Fourth line would release ALT, Fifth line would release ENTER (RETURN)....

OS- How to properly print a spacebar in the video memory in a kernel?

I know this the title is weird (I don't know how to explain it :| )but if u see my problem u will get it. I am making an os in assembly and c i have made a kernel and i have text input and output but i am having...

Retrieving keyboard interrupt result in mfc

I have CListCtrl and I'm trying to handle some keyboard buttons such as page-up / page-down etc. I'm using OnLvnKeydown handler. My problem is retrieving the item's index AFTER the keyboard interrupt. For instance, if item 1 is marked and I press page-down I want to show the details of...

Swift: How can I change the color of keyboard background and lettering?

I am building a project for iOS8 in swift. The default and dark options for keyboard in xcode do not go with the color theme for my app design. Is there a simple way for to change the colors in the keybaord?...

Keyboard arrow navigation should not consider hidden special characters

I have created an example here http://jsfiddle.net/8y36phcz/2/ to show the scenario. In this I have a special character dot(.) in the HTML. In the output it is not visible. Now when I use the keyboard left and right arrow to navigate, I want to skip the dot(.) and go to...

iOS 8.3 keyboard orientation bug

I am facing a strange iOS 8.3 issue which shows a keyboard on a wrong orientation like this (the view controller is in Landscape mode, but the keyboard show up in Portrait mode): I can trigger this issue by following these steps: Create 2 UIViewController subClass: ViewControllerA and ViewControllerB in...

Android soft keyboard showing under a dialog fragment

I have a dialog fragment, which has a listview with mutiple views listed, in one of that view there is an edittext which has showing cursor, but soft keyboard is not showing. So i write a code on its onclick to show keyboard like below, etcomment.setOnClickListener(new OnClickListener() { @Override public...

How to Start in Numeric Side of Keypad in Objective C

I have some alphanumeric content that gets entered routinely and is mostly numbers, so I'm wondering if there's a way to start in the numeric side of the keyboard but still have the option to switch to the alphabetic keyboard in Objective-C for iPhone development specifically. I've found plenty of...

Xlib,C++ - Get Window Handle (SendEvent,…)

I am currently working with XLib in order to code an Application that can send Mouse and Keyboard Events to a certain window (Not display). I was able to send these Events to a window using The "window"-handle obtained by the "XGetInputFocus()" method. Unfortunately I need to get the window-handle...

dropdownlist selected text change on arrow key press

I have a Dropdownlist.I have added wrapper class on that dropdown.And this class added span after dropdownlist to show selected text. <span class="select-wrapper"> <select name="MethodId" id="Status" class="product-select product-select-js"> <option value="">---Select---</option> <option value="0">GET</option> <option value="1">POST</option> <option value="2">FTP</option> </select> <span class="holder">POST</span> </span> And I want to change the...