InputMethodKit

RSS for tag

Develop input methods and manage communication with client applications, candidates windows, and input method modes using InputMethodKit.

Posts under InputMethodKit tag

31 Posts

Post

Replies

Boosts

Views

Activity

TextFiled lost focus and no key input on Japanese input Romaji mode
I write macOS menu app with TextField by SwiftUI on Japanese Input mode. On some conditions, the TextFiled lost focus, no key input, no mouse click. User cannot do anything. Setup MacOS Ventura 13.3.1 (a) Install Japanese Romaji Input source by System Preferences -> Keyboard Set input mode as "Romaji" Build test source code On Xcode 14.3, create new macOS app project "FocusTest" with SwiftUI, Swift. Replace FocusTestApp.swift with attached code. Build on Xcode Steps Set input mode as "Romaji" Run FocusTestApp Click T square icon on top menu Small windows with globe appear Click Desktop background area Click T square icon on top menu Click PIN T with PIN textField View appear That textField lost focus, click inside of textField Key or click is not accepted. With US keyboard mode, key input become possible on Step 10. But Focused blue square is missing. Code of FocusTestApp.swift import SwiftUI @main struct focusTestApp: App { var body: some Scene { MenuBarExtra("Test", systemImage: "t.square") { MainView() }.menuBarExtraStyle(.window) } } struct MainView: View { @State private var showingPIN: Bool = false var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Button("PIN") { print("clicked") showingPIN = true } } .padding() .sheet(isPresented: $showingPIN) { PinView() } } } struct PinView: View { @Environment(\.presentationMode) var presentationMode @State private var pin: String = "" @FocusState private var pinIsFocused: Bool var body: some View { VStack { Image(systemName: "t.square") .resizable() .aspectRatio(contentMode: .fit) .frame(width: 64.0, height: 64.0) .foregroundColor(.accentColor) Text("Enter PIN code") HStack { TextField("", text: $pin) .font(Font.system(size: 28, design: .default)) .frame(width:4*28.0, height:28.0) .focusable() .focused($pinIsFocused) } .onAppear(){ pinIsFocused = true } } .padding() } }
0
2
1.8k
May ’23
iphone 14 microphone just on the bottom?
there are a lot of things i dislike about the iphone 14. but the one i despise the most is the microphone design. am i the only one having issued on facetime? you’re supposed to set your phone up to see the other person and they can see you, but they can’t hear a thing i say because the mic is on the bottom. the iphone 14 is by far their worst phone. i’m so disappointed and i wish i could get my XR back
1
0
1.4k
Oct ’22
Keyboard glitch
Ever since the iO 16 update, my keyboard will glitch. While typing the keyboard will glitch between swiftkey and apple keyboard making it almost impossible to type. It is extremely aggravating. To the point that I'm ready to switch back to android if this isn't fixed soon.
2
0
1.4k
Sep ’22
latin digit numerical
According to the Indian Constitution, typing in Hindi keyboard layout Unicode should have Latin digit form like 1234567890. But when typing in Hindi keyboard layout Unicode on Macbook or iPhone then the numeral form is typed in Devanagari Digit.  It's out of date now. Secondly, according to Article 343 of the Constitution of India, the official language of the country will be Hindi, but the form of numerals will be Latin. The keyboard layout of all operating systems except macOS iOS and typing also uses Latin as the numeral form. But when typing in Hindi on Mac and iPhone, the form of numerals does not seem logical due to the Devanagari Digit form.
0
0
866
Aug ’22
Choosing Type Suggestions From Accessibility Keyboard Using a Keyboard
Hello, In Short: add a way to use the text prediction from the Accessibility Keyboard using the regular keyboard. (for example: remap the row number keys.) Explanation: mac's on-screen keyboard has some great features for people with accessibility needs: it is static on the screen, present the typed text in a big font and suggest words. The problem is that the physical keyboard can't use the word suggestion. some of us (accessibility users) can benefit from text prediction using a keyboard, like in any IDE (for programmers) or iPhone keyboard. We are more comfortable using a keyboard than a mouse. By the way: Microsoft Windows's implementation is lacking, as it requires the use of the "up arrow+enter" which is small and far from the center of the keyboard, therefore hard to reach while typing fast, but at least there is something :-) in that case a keyboard macro can help to remap the row number into "up+up...+enter". I have tried to develop it without success. my problem is that I can't find a way to interact with the accessibility keyboard. remapping keys to run a script is the easier part. Thank you for helping make Apple more accessible.
2
1
1.1k
Jul ’22
Display candidate list failed in SCIM app while working with Wine
I'm using Wine for running Windows app/games on MacOS, and testing if input method working well in Wine apps. When trying to type word with SCIM and Wine, candidate list can't be displayed, instead, I get error message in Console from SCIM_Extension as below: warning: attempt to begin free window rendezvous for <IMKUIPanel: 0x7fd166f52890> failed due to Error Domain=com.apple.ViewBridge Code=23 "(null)" UserInfo={com.apple.ViewBridge.error.hint=description not found, com.apple.ViewBridge.error.description=NSViewBridgeHostAbsentError} It seems only a display-related problem, for candidate navigation and submission working well even if it can't be seen. This problem is permanent in MacOS native input methods using CoreChineseEngine framework of Big Sur 11.6 and Monterey 12.1, but not seen in 3rd-party input methods using InputMethodKit such as hallelujahIM and squirrel. I believe bug lies in Wine implementation of NSPanel or NSApplicationDelegate. But I need some clarification from someone in Apple, about the cause of NSViewBridgeHostAbsentError, and advices for next step troubleshooting, if possible. Many thanks.
1
0
882
Feb ’22
TextFiled lost focus and no key input on Japanese input Romaji mode
I write macOS menu app with TextField by SwiftUI on Japanese Input mode. On some conditions, the TextFiled lost focus, no key input, no mouse click. User cannot do anything. Setup MacOS Ventura 13.3.1 (a) Install Japanese Romaji Input source by System Preferences -&gt; Keyboard Set input mode as "Romaji" Build test source code On Xcode 14.3, create new macOS app project "FocusTest" with SwiftUI, Swift. Replace FocusTestApp.swift with attached code. Build on Xcode Steps Set input mode as "Romaji" Run FocusTestApp Click T square icon on top menu Small windows with globe appear Click Desktop background area Click T square icon on top menu Click PIN T with PIN textField View appear That textField lost focus, click inside of textField Key or click is not accepted. With US keyboard mode, key input become possible on Step 10. But Focused blue square is missing. Code of FocusTestApp.swift import SwiftUI @main struct focusTestApp: App { var body: some Scene { MenuBarExtra("Test", systemImage: "t.square") { MainView() }.menuBarExtraStyle(.window) } } struct MainView: View { @State private var showingPIN: Bool = false var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Button("PIN") { print("clicked") showingPIN = true } } .padding() .sheet(isPresented: $showingPIN) { PinView() } } } struct PinView: View { @Environment(\.presentationMode) var presentationMode @State private var pin: String = "" @FocusState private var pinIsFocused: Bool var body: some View { VStack { Image(systemName: "t.square") .resizable() .aspectRatio(contentMode: .fit) .frame(width: 64.0, height: 64.0) .foregroundColor(.accentColor) Text("Enter PIN code") HStack { TextField("", text: $pin) .font(Font.system(size: 28, design: .default)) .frame(width:4*28.0, height:28.0) .focusable() .focused($pinIsFocused) } .onAppear(){ pinIsFocused = true } } .padding() } }
Replies
0
Boosts
2
Views
1.8k
Activity
May ’23
How to position cursor automatically to an input field in an HTML input form
In an HTML input form we would like to position the cursor automatically to an input field on the on load event. Currently we have to tap to position to the input field.
Replies
0
Boosts
0
Views
770
Activity
Apr ’23
Support of clipboard in iOS
The “best” phone in the world really misses the clipboard function, so you can access copied data stack including images. Absence of this feature makes it really uncomfortable to fill the templates or accessing some data from previous activity without reopening the previous activity app.
Replies
0
Boosts
0
Views
1k
Activity
Dec ’22
TextField and Keyboard problem
In application first screen only works properly and show Keyboard when tap textfield. When screens switched keyboard doesnt appear at all.
Replies
0
Boosts
0
Views
792
Activity
Nov ’22
iphone 14 microphone just on the bottom?
there are a lot of things i dislike about the iphone 14. but the one i despise the most is the microphone design. am i the only one having issued on facetime? you’re supposed to set your phone up to see the other person and they can see you, but they can’t hear a thing i say because the mic is on the bottom. the iphone 14 is by far their worst phone. i’m so disappointed and i wish i could get my XR back
Replies
1
Boosts
0
Views
1.4k
Activity
Oct ’22
Keyboard glitch
Ever since the iO 16 update, my keyboard will glitch. While typing the keyboard will glitch between swiftkey and apple keyboard making it almost impossible to type. It is extremely aggravating. To the point that I'm ready to switch back to android if this isn't fixed soon.
Replies
2
Boosts
0
Views
1.4k
Activity
Sep ’22
latin digit numerical
According to the Indian Constitution, typing in Hindi keyboard layout Unicode should have Latin digit form like 1234567890. But when typing in Hindi keyboard layout Unicode on Macbook or iPhone then the numeral form is typed in Devanagari Digit.  It's out of date now. Secondly, according to Article 343 of the Constitution of India, the official language of the country will be Hindi, but the form of numerals will be Latin. The keyboard layout of all operating systems except macOS iOS and typing also uses Latin as the numeral form. But when typing in Hindi on Mac and iPhone, the form of numerals does not seem logical due to the Devanagari Digit form.
Replies
0
Boosts
0
Views
866
Activity
Aug ’22
Choosing Type Suggestions From Accessibility Keyboard Using a Keyboard
Hello, In Short: add a way to use the text prediction from the Accessibility Keyboard using the regular keyboard. (for example: remap the row number keys.) Explanation: mac's on-screen keyboard has some great features for people with accessibility needs: it is static on the screen, present the typed text in a big font and suggest words. The problem is that the physical keyboard can't use the word suggestion. some of us (accessibility users) can benefit from text prediction using a keyboard, like in any IDE (for programmers) or iPhone keyboard. We are more comfortable using a keyboard than a mouse. By the way: Microsoft Windows's implementation is lacking, as it requires the use of the "up arrow+enter" which is small and far from the center of the keyboard, therefore hard to reach while typing fast, but at least there is something :-) in that case a keyboard macro can help to remap the row number into "up+up...+enter". I have tried to develop it without success. my problem is that I can't find a way to interact with the accessibility keyboard. remapping keys to run a script is the easier part. Thank you for helping make Apple more accessible.
Replies
2
Boosts
1
Views
1.1k
Activity
Jul ’22
imei extraction through USB
Hello, Is there a way programmatically(using c++ or other language) to extract IMEI through USB We need it instead of typing the IMEI number manually Thanks in advanced
Replies
0
Boosts
0
Views
663
Activity
Apr ’22
Display candidate list failed in SCIM app while working with Wine
I'm using Wine for running Windows app/games on MacOS, and testing if input method working well in Wine apps. When trying to type word with SCIM and Wine, candidate list can't be displayed, instead, I get error message in Console from SCIM_Extension as below: warning: attempt to begin free window rendezvous for <IMKUIPanel: 0x7fd166f52890> failed due to Error Domain=com.apple.ViewBridge Code=23 "(null)" UserInfo={com.apple.ViewBridge.error.hint=description not found, com.apple.ViewBridge.error.description=NSViewBridgeHostAbsentError} It seems only a display-related problem, for candidate navigation and submission working well even if it can't be seen. This problem is permanent in MacOS native input methods using CoreChineseEngine framework of Big Sur 11.6 and Monterey 12.1, but not seen in 3rd-party input methods using InputMethodKit such as hallelujahIM and squirrel. I believe bug lies in Wine implementation of NSPanel or NSApplicationDelegate. But I need some clarification from someone in Apple, about the cause of NSViewBridgeHostAbsentError, and advices for next step troubleshooting, if possible. Many thanks.
Replies
1
Boosts
0
Views
882
Activity
Feb ’22
Another problem why?
Before upgrading to iOS 15 I was able with the paid developer account to sign and install 3rd party applications such as MAME and play them on my iPhone, but now I am not. Why?
Replies
0
Boosts
0
Views
591
Activity
Oct ’21