Questions tagged [input-method-kit]

Input Method Kit (IMKit) Framework for Mac OS X

The Input Method Kit, introduced in OS X v10.5, provides a streamlined programming interface that lets you develop input methods with far less code than older Mac programming interfaces.

The Input Method Kit provides classes and protocols for managing communication with client applications, candidates windows, and input method modes.

19 questions
6
votes
1 answer

I need to create Android keyboard app, but some classes are depricated

I need to develope android keyboard app, but Android developers website tells that KeyboardView and Keybord classes are deprecated after Api 29, to create the UI for the keyboard. This class was deprecated in API level 29. The following is the…
5
votes
2 answers

How to develop a simple input method for Mac OS X in Swift?

I know there is an API reference for the InputMethodKit framework. And there is also sample code in Objective-C, but it doesn't provide an example in Swift. Does anyone know how to make a simple IME in Swift? It can have features like repeating the…
V.D.D
  • 135
  • 1
  • 7
4
votes
2 answers

Is there any reference or information for creating an input method for Mac OS X?

Any information is welcome. I know nothing about the APIs for input methods in OS X.
CarmeloS
  • 7,868
  • 8
  • 56
  • 103
3
votes
1 answer

bringing up a InputWindow on OSX for text input while typing text with asian language

I am working on a text editor written with C++ engine and Qt for UI. I want to allow the user to write with any of the input source ( keyboard of any language ). It was all good till the time I was supporting languages which has 1-1 keyboard mapping…
PRIME
  • 1,058
  • 7
  • 21
2
votes
2 answers

Input Method (IMKit) setup trouble

I'm trying to create a new input method using Input Method Kit. The documentation is very lacking, but I believe I'm setting the project up correctly and I place the input method into ~/Library/Input Methods after building it. However, I see strange…
jtbandes
  • 115,675
  • 35
  • 233
  • 266
2
votes
0 answers

Microsoft word crashes when deactive by input method

I am developping an input method. Now I have a crash on microsoft word. When the current edit field is deactive, i need to do some job to clean the marked text. I use: -(void) deactivateServer:(id) sender { ...... [sender setMarkedText:@""…
gang
  • 31
  • 2
2
votes
0 answers

How to change marked text format of the IMKTextInput?

By default implementors of the IMKTextInput protocol displays marked text of the current input session underlined (with 2 pixel black underline according to documentation). I develop specific Input Method and would like to use another formatting,…
Andrew Bridge
  • 163
  • 1
  • 7
2
votes
0 answers

Erasing bunch of text instead of Single for KEYCODE_DEL

I am using InputMethodService for my sticker keyboard android application by extending InputMethodService class as below : public class ImageKeyboard extends InputMethodService { ... } The layout for keyboard is created dynamically in…
2
votes
2 answers

IMKit to catch NSKeyup event

As an experiment, I am trying to achieve the following: Let spacebar work as a modifier key - like the Shift key - where holding the spacebar key down and typing keys print different letters. Releasing the spacebar would set the state back to…
Jang-hwan Kim
  • 1,106
  • 1
  • 10
  • 14
1
vote
0 answers

Crash in IMKKit composedString(_:) using swift

I am writing a swift input method (IM) using InputMethodKit. The IM basically works, I get keystrokes from inputText() and see my log messages in Konsole. Now I implement composedString(_ sender: Any!) in swift like this: override func…
Chris
  • 1,231
  • 2
  • 10
  • 20
1
vote
0 answers

How to make QWidget get input method focus on Mac

I am using QWidget to create a mirrored window of my mobile phones on MacOS. I'm using setAttribute(Qt::WA_InputMethodEnabled, true); so that my Qwidget can get the text input from Sogou input method on Mac. There is only one QOpenGLWidget in my…
AbAb
  • 11
  • 1
1
vote
3 answers

In cocoa, How to check a textfield is for password

I am developping an input method on Mac OS. Now I have a problem. I need to switch the input mode to english if the current input text field is for password. But I do not know how to do the check. How can I know the current input field is a password…
gang
  • 31
  • 2
1
vote
1 answer

How to check the status of input method in NSTextInputClient?

From the docs, I can see that the input context will send one of the following methods to the text view. insertText:replacementRange: setMarkedText:selectedRange:replacementRange: doCommandBySelector: In my testcase, when enabled an input method,…
1
vote
0 answers

How to input non-alphabetic letters (such as Chinese, Japanese, Korean) in unix/linux console without X running

How to input non-alphabetic letters without built-in input method tool (vim, emacs and so on)?
2204
  • 17
  • 2
1
vote
0 answers

Can IMKCandidates `setCandidateData:` be used in place of IMKInputController `candidates:` delegate method?

I'm creating an IMKCandidate candidate window for my Input Method Kit input method: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/IMKCandidates_Class/ You then need to override the IMKInputController methods…
pkamb
  • 33,281
  • 23
  • 160
  • 191
1
2