SessionCtl // Add the menu item for calling reverse-lookup window.
This commit is contained in:
parent
892a574378
commit
dedbddf223
|
@ -144,6 +144,11 @@ extension SessionCtl {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu.addItem(
|
||||||
|
withTitle: "Reverse Lookup (Phonabets)".localized.withEllipsis,
|
||||||
|
action: #selector(callReverseLookupWindow(_:))
|
||||||
|
)
|
||||||
|
|
||||||
menu.addItem(NSMenuItem.separator()) // ---------------------
|
menu.addItem(NSMenuItem.separator()) // ---------------------
|
||||||
|
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
|
@ -386,6 +391,10 @@ extension SessionCtl {
|
||||||
LMMgr.initUserLangModels()
|
LMMgr.initUserLangModels()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc public func callReverseLookupWindow(_: Any? = nil) {
|
||||||
|
CtlRevLookupWindow.show()
|
||||||
|
}
|
||||||
|
|
||||||
@objc public func removeUnigramsFromUOM(_: Any? = nil) {
|
@objc public func removeUnigramsFromUOM(_: Any? = nil) {
|
||||||
LMMgr.removeUnigramsFromUserOverrideModel(IMEApp.currentInputMode)
|
LMMgr.removeUnigramsFromUserOverrideModel(IMEApp.currentInputMode)
|
||||||
if NSEvent.modifierFlags.contains(.option) {
|
if NSEvent.modifierFlags.contains(.option) {
|
||||||
|
|
Loading…
Reference in New Issue