keyboard-layout

iPhone keyboard layout for negative numbers?

断了今生、忘了曾经 提交于 2020-01-02 04:33:27
问题 My users need to enter latitude and longitude, and of course I need to verify that the values entered are legitimate lat/long value. I'd like to have a keyboard layout that does some of this for me (eliminating alphabetic characters, punctuation, etc, and leaving only the numbers and +/-). The number pad keyboard doesn't seem to do it (missing +/-) and neither do any other keyboard layouts that come with the SDK. Does anyone know if there is a way to provide that capability without doing my

can't get current keyboard layout

空扰寡人 提交于 2019-12-30 19:58:08
问题 I have tried GetKeyboardLayoutName() and GetKeyboardLayout() for getting the current keyboard layout, but they both give me the default layout and changing the layout doesn't affect the output! while(1) { Sleep(5); for(int i = 8; i < 191; i++) { if(GetAsyncKeyState(i)&1 ==1) { TCHAR szKeyboard[KL_NAMELENGTH]; GetKeyboardLayoutName(szKeyboard); if(GetAsyncKeyState(i)&1 ==1) { TCHAR szKeyboard[KL_NAMELENGTH]; GetKeyboardLayoutName(szKeyboard); cout << szKeyboard << endl ; } } } } It always

qt setting QWSServer keymap from code

青春壹個敷衍的年華 提交于 2019-12-25 02:18:09
问题 I need to a keymap for my embedded QWSServer application. Using environmental variables like this QWS_KEYBOARD="TTY:keymap=/german_keyboard.qmap" export QWS_KEYBOARD works, but isn't optimal for me. I tried to set it from code using QWSServer* wsServer = QWSServer::instance(); QWSKeyboardHandler * kh = QKbdDriverFactory::create("TTY", "keymap=/german_keymap.qmap"); wsServer->setKeyboardHandler(kh); as mentioned here. However, it is not working. Any ideas how to fix it? 回答1: It actually looks

Translate keyboard layout with python

◇◆丶佛笑我妖孽 提交于 2019-12-24 06:45:54
问题 I'm using a digispark arduino-compatible device to emulate a keyboard with an US layout (it uses DigiKeyboard.h as library to do so). Now,it just takes as input an integer which represent a key and sends it to the computer following the USB keyboard standards, everything fine until this point. The problem is that I need this device to work with every keyboard layout, my question is: is there a way to "translate" the numeric value representing a character to the numeric value which represent

How can I simulate Alt+Shift to change the language in Windows?

ⅰ亾dé卋堺 提交于 2019-12-23 10:39:52
问题 i need to to force alt + shift in Delphi to make my language of the app. I tried with keybd_event calling it twice, but it didn't do the trick. 回答1: Do you want to switch input language of your application? Use ActivateKeyboardLayout function for this. 回答2: Do you control the system to be sure that it's going to respond to that? I have an alternate language installed but it can only be switched via the mouse, I have disabled the keyboard shortcuts. The problem is that I rarely actually need

Preserving keyboard layout in swing app?

ぐ巨炮叔叔 提交于 2019-12-21 04:29:23
问题 I have a Java Swing application wich spawns child dialogs with text controls. And the problem is that when you change keyboard layout in child dialog, it changes back right after the dialog is closed. What I need is the keboard layout to stay after being switched whether it was switched in the main frame or in a child frame. Here is a SSCCE that illustrates the problem: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public

Javascript Unicode: same letters but different unicode

你说的曾经没有我的故事 提交于 2019-12-20 01:08:50
问题 I've got to send text to a printservice, which only accepts certain types of special characters, i.e. ï. My client somehow inputs text in such a way that the letters look the same, but have a different underlying unicode symbol, and are thereby not processed correctly by the printservice. Example: Mine: ï (unicode \u00EF) Theirs: ï (unicode \u0069\u0308), copy pasting the 2 symbols in chrome bar for example, will show that it actually looks the same in textarea's) How can I convert all

detect keyboard layout with javascript

家住魔仙堡 提交于 2019-12-17 06:46:29
问题 Is there any way to detect the current keyboard layout using JavaScript? I found this, but it only detects if the visitor is on the english layout. I need to know the exact layout as a string, e.g. de-ch , fr or en . 回答1: Keyboard layouts do not have standardized identifiers. They have names assigned to them by the layout creator. They may have a language association as one defined property. The Keyboard layouts should not be confused with language or locale identifiers. In particular there

Tkinter determine keyboard layout

旧时模样 提交于 2019-12-13 04:27:04
问题 Is there a way to detect current keyboard layout in Tkinter? It is necessary to process keyboard accelerators correctly for such languages as Russian, French, Greek (see my other question for details). 回答1: No, there is no such feature built into Tkinter. Why not simply have your application ask the user where each special key is, the first time the app starts up? Apple does this with OSX -- it asked me to press a couple of keys the very first time I booted up a fresh install. You can put the

How can I call ActivateKeyboardLayout from 64bit Windows Vista using VBA

江枫思渺然 提交于 2019-12-12 10:49:15
问题 Running VBA under XP I was able to call ActivateKeyboardLayout to switch my input language from English to another language. However, this no longer works under Vista64. Any suggestions or workarounds? The code that used to work under XP was similar to the following: Private Declare Function ActivateKeyboardLayout Lib "user32" ( _ ByVal HKL As Long, ByVal flags As Integer) As Integer Const aklPUNJABI As Long = &H4460446 ActivateKeyboardLayout aklPUNJABI, 0 There was a suggestion to try Public