Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IME enabled on web #247

Closed
wants to merge 53 commits into from
Closed

IME enabled on web #247

wants to merge 53 commits into from

Conversation

n2
Copy link
Contributor

@n2 n2 commented Mar 23, 2021

See here. By adding a hidding input elemt, IME can be used on egui_web, both on desktop & mobile browsers. Tested on:

  1. chrome@mac
  2. safari@mac
  3. firefox@mac
  4. chrome@ios
  5. safari@ios
  6. chrome@android

@n2 n2 marked this pull request as ready for review March 24, 2021 00:26
Copy link
Owner

Mar 24, 2021

This is awesome work, but there are a few kinks to iron out!

Most noticeably: when I click anywhere on the web page, the egui interface slides down to the lower half of the screen. This happens both on firefox on my macbook and on safari on my iphone.

EDIT here is a fix: 41a3bb6

egui_web/src/lib.rs Outdated Show resolved Hide resolved
egui_web/Cargo.toml Outdated Show resolved Hide resolved
epaint/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Owner

Again, really amazing work - thanks you so much for this! ❤️

If you would like some help with the last cleanup you can check the Allow edits from maintainers checkbox!

@n2
Copy link
Contributor Author

n2 commented Mar 25, 2021

Ok, changes are all done, and "Allow edits from maintainers" is checked.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't figure out to push my changes (maybe because you are attempting to merge from your master and not from a feature branch?).

Only two small things left, and then you need to rebase on or merge master to fix the CI issues.

@@ -228,7 +234,7 @@ impl epi::Storage for LocalStorage {

// ----------------------------------------------------------------------------

pub fn handle_output(output: &egui::Output) {
pub fn handle_output(output: &egui::Output, _canvas_id: &str) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused argument

@@ -458,6 +464,19 @@ fn paint_and_schedule(runner_ref: AppRunnerRef) -> Result<(), JsValue> {
request_animation_frame(runner_ref)
}

fn text_agent_hiddeh() -> bool {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit typo: text_agent_hidden

@n2
Copy link
Contributor Author

n2 commented Mar 26, 2021

Ture, it is in master branch. I am not familiar with git, next time, all changes will be made in feature branch.

They just add unnecessary complexity at this point
* ci: install libspeechd-dev

* Fix new clippy lints for rust 1.51.0
@n2
Copy link
Contributor Author

n2 commented Mar 26, 2021

Oops, sad story, this PR is messed up, illly using of git rebase. Maybe I should close it, and commit a new PR again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants