MCPcopy Create free account
hub / github.com/EasyIME/PIME / resetComposition

Method resetComposition

python/cinbase/__init__.py:2662–2687  ·  view source on GitHub ↗
(self, cbTS)

Source from the content-addressed store, hash-verified

2660
2661 # 重置輸入的字根
2662 def resetComposition(self, cbTS):
2663 cbTS.compositionChar = ''
2664 if not cbTS.compositionBufferMode:
2665 cbTS.setCompositionString('')
2666 cbTS.isShowCandidates = False
2667 cbTS.setCandidateCursor(0)
2668 cbTS.setCandidatePage(0)
2669 cbTS.setCandidateList([])
2670 cbTS.setShowCandidates(False)
2671 cbTS.wildcardcandidates = []
2672 cbTS.wildcardpagecandidates = []
2673 cbTS.menumode = False
2674 cbTS.multifunctionmode = False
2675 cbTS.menusymbolsmode = False
2676 cbTS.ctrlsymbolsmode = False
2677 cbTS.fullsymbolsmode = False
2678 cbTS.dayisymbolsmode = False
2679 cbTS.keepComposition = False
2680 cbTS.homophonemode = False
2681 cbTS.homophoneselpinyinmode = False
2682 cbTS.homophoneChar = ''
2683 cbTS.homophoneStr = ''
2684 cbTS.isHomophoneChardefs = False
2685 cbTS.homophonecandidates = []
2686 cbTS.selcandmode = False
2687 cbTS.lastCompositionCharLength = 0
2688
2689 # 重置輸入的字根
2690 def resetCompositionBuffer(self, cbTS):

Callers 7

onKeyDownMethod · 0.95
onKeyUpMethod · 0.95
closeMenuCandMethod · 0.95
setOutputFSymbolsMethod · 0.95
moveCursorInBracketsMethod · 0.95

Calls 5

setCompositionStringMethod · 0.80
setCandidateCursorMethod · 0.80
setCandidateListMethod · 0.80
setShowCandidatesMethod · 0.80
setCandidatePageMethod · 0.45

Tested by

no test coverage detected