This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +47
-1
lines changed
Expand file tree Collapse file tree 7 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ const summitStep = () => {
7777 <span v-if =" step.stepType === 'lock'" >
7878 <el-tag size =" small" >锁定设备</el-tag >
7979 </span >
80+ <span v-if =" step.stepType === 'closeKeyboard'" >
81+ <el-tag size =" small" >关闭Sonic输入法</el-tag >
82+ </span >
8083 <span v-if =" step.stepType === 'unLock'" >
8184 <el-tag size =" small" >解锁设备</el-tag >
8285 </span >
Original file line number Diff line number Diff line change @@ -384,6 +384,10 @@ const androidOptions = ref([
384384 value: ' sendKeyForce' ,
385385 label: ' Sonic输入法输入' ,
386386 },
387+ {
388+ value: ' closeKeyboard' ,
389+ label: ' 关闭Sonic输入法' ,
390+ },
387391 ],
388392 },
389393 {
Original file line number Diff line number Diff line change @@ -546,6 +546,9 @@ const androidRemoteTS = {
546546 inputText : 'Enter text' ,
547547 pleaseText : 'Enter the text to send, CHS is supported' ,
548548 send : 'Clear Text' ,
549+ keyboard : '清空输入框与实时输入仅在Sonic输入法开启时可用' ,
550+ startKeyboard : '启动Sonic输入法' ,
551+ stopKeyboard : '禁用Sonic输入法' ,
549552 remoteADB : 'Remote ADB' ,
550553 noAgent : 'The Agent is not enabled!' ,
551554 UIAutomator2ServerInit : 'Initialize UIAutomator2Server' ,
Original file line number Diff line number Diff line change @@ -538,6 +538,9 @@ const androidRemoteTS = {
538538 inputText : '输入文本' ,
539539 pleaseText : '请输入要发送的文本,支持简体中文' ,
540540 send : '清空输入框' ,
541+ keyboard : '清空输入框与实时输入仅在Sonic输入法开启时可用' ,
542+ startKeyboard : '启动Sonic输入法' ,
543+ stopKeyboard : '禁用Sonic输入法' ,
541544 remoteADB : '远程ADB' ,
542545 noAgent : '所在Agent未开启该功能!' ,
543546 UIAutomator2ServerInit : '初始化UIAutomator2Server' ,
Original file line number Diff line number Diff line change @@ -536,6 +536,9 @@ const androidRemoteTS = {
536536 inputText : '输入文本' ,
537537 pleaseText : '请输入要发送的文本,支持简体中文' ,
538538 send : '清空输入框' ,
539+ keyboard : '清空输入框与实时输入仅在Sonic输入法开启时可用' ,
540+ startKeyboard : '启动Sonic输入法' ,
541+ stopKeyboard : '禁用Sonic输入法' ,
539542 remoteADB : '远程ADB' ,
540543 noAgent : '所在Agent未开启该功能!' ,
541544 UIAutomator2ServerInit : '初始化UIAutomator2Server' ,
Original file line number Diff line number Diff line change @@ -536,6 +536,9 @@ const androidRemoteTS = {
536536 inputText : '輸入文本' ,
537537 pleaseText : '請輸入要發送的文字,支援繁體中文' ,
538538 send : '清空输入框' ,
539+ keyboard : '清空输入框与实时输入仅在Sonic输入法开启时可用' ,
540+ startKeyboard : '启动Sonic输入法' ,
541+ stopKeyboard : '禁用Sonic输入法' ,
539542 remoteADB : '遠端ADB' ,
540543 noAgent : '所在Agent未開啟該功能!' ,
541544 UIAutomator2ServerInit : '初始化UIAutomator2Server' ,
Original file line number Diff line number Diff line change @@ -1641,6 +1641,20 @@ const sendText = () => {
16411641 })
16421642 );
16431643};
1644+ const startKeyboard = () => {
1645+ websocket .send (
1646+ JSON .stringify ({
1647+ type: ' startKeyboard' ,
1648+ })
1649+ );
1650+ };
1651+ const stopKeyboard = () => {
1652+ websocket .send (
1653+ JSON .stringify ({
1654+ type: ' stopKeyboard' ,
1655+ })
1656+ );
1657+ };
16441658const install = (apk ) => {
16451659 if (apk .length > 0 ) {
16461660 websocket .send (
@@ -2565,10 +2579,23 @@ onMounted(() => {
25652579 <template #header >
25662580 <strong >{{ $t('androidRemoteTS.code.inputText') }}</strong >
25672581 </template >
2568- <div style =" text-align : center ; margin : 22px 0px " >
2582+ <el-alert
2583+ :title =" $t('androidRemoteTS.code.keyboard')"
2584+ type =" info"
2585+ show-icon
2586+ :closable =" false"
2587+ >
2588+ </el-alert >
2589+ <div style =" text-align : center ; margin-top : 12px " >
25692590 <el-button size =" mini" type =" primary" @click =" sendText"
25702591 >{{ $t('androidRemoteTS.code.send') }}
25712592 </el-button >
2593+ <el-button size =" mini" type =" primary" @click =" startKeyboard"
2594+ >{{ $t('androidRemoteTS.code.startKeyboard') }}
2595+ </el-button >
2596+ <el-button size =" mini" type =" primary" @click =" stopKeyboard"
2597+ >{{ $t('androidRemoteTS.code.stopKeyboard') }}
2598+ </el-button >
25722599 </div >
25732600 </el-card >
25742601 </el-col >
You can’t perform that action at this time.
0 commit comments