adgad / kboard

Android keyboard for fast responses
GNU General Public License v3.0
155 stars 24 forks source link

please post a new version #31

Open s6677 opened 1 year ago

s6677 commented 1 year ago

I can't use the qq function,Then want the url to open the function,

The biggest problem at present is that I can't use the qq switching function. This one is completely different from pressing the earth key, because it can wait for the action to be completed before switching. If the action is not completed, if it is switched, the action will be invalid.

e(something,qq) Perhaps the most useful feature

einmeterhecht commented 1 year ago

Hello @s6677 I don't understand what exactly your problem is. The only thing I can do is explain how qq works. Current behaviour of the qq command is to set a flag that it should switch the keyboard when all other commands have been completed. Using it combined with the e(...) command is a little bit tricky because e(...) starts a separate thread to execute the commands. The consequences are:

I haven't used the URL functionality of the app and also do not know how URL handling works in Android. Perhaps I can help if you explain your problem more precisely.

s6677 commented 1 year ago

Open a url ,i hope kboard, there is a new action, name is openurl ,like i(),dw action ,it is a action.

like a command e(dw,i(5667),Openurl(https://www.google.com))

But actually I don't want to open google.com webpage , if kboard can open a url ,so i can run anything intent

like a command e(dw,i(something),Openurl(https://www.google.com))

e(dw,i(something),openurl(url=#intent))

This is the command I actually executed in the end e(dw,i(something),openurl(#intent)

If it can delete 1 word and write something after running, , then run the intent

so it can do a lot of things ,any action

einmeterhecht @.***> 于 2023年2月19日周日 下午7:34写道:

Hello @s6677 https://github.com/s6677 I don't understand what exactly your problem is. The only thing I can do is explain how qq works. Current behaviour of the qq command is to set a flag that it should switch the keyboard when all other commands have been completed. Using it combined with the e(...) command is a little bit tricky because e(...) starts a separate thread to execute the commands. The consequences are:

  • If the command is something like "e(something),qq", it may switch the keyboard before everything inside e(...) has been executed. I haven't tested if this can cause bugs.
  • If the command is something like "e(something1,qq),something2,something3", the e(...) could be done with its commands and switch the keyboard before something3 has been executed. This is why qq is explicitly disabled inside e(...) atm. Of course this is not good code, so feel free to change it!

I haven't used the URL functionality of the app and also do not know how URL handling works in Android. Perhaps I can help if you explain your problem more precisely.

— Reply to this email directly, view it on GitHub https://github.com/adgad/kboard/issues/31#issuecomment-1435951749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX634CP4PMK6PZCIVYPZKWTWYHZMZANCNFSM6AAAAAAU2RIFY4 . You are receiving this because you were mentioned.Message ID: @.***>