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

Enable switching to DIRECT mode using the mouse. #1061

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

phoepsilonix
Copy link
Contributor

@phoepsilonix phoepsilonix commented Sep 15, 2024

Description

This is about addressing the problem where selecting DIRECT with the mouse to switch input modes doesn't work.

In the PropertyHandler::ProcessPropertyActivate function, the processing for DIRECT mode is being skipped. This is because DIRECT=0 as defined in src/protocol/commands.proto#L51, so !entry->composition_mode is evaluated as true.
As a result, while the DIRECT menu item exists, it is not linked to the actual processing that should be executed for DIRECT.

Issue IDs

Steps to test new behaviors (if any)

  1. Change the input mode to an option different from DIRECT
  2. Switch the input mode to DIRECT mode using the mouse.
    With the above steps, the input mode does not switch to DIRECT mode.

Additional context

There is no problem when switching using keyboard keys such as the full-width/half-width key. This is a problem that occurs when switching by mouse click.

This is about addressing the problem where selecting DIRECT with the mouse to switch input modes doesn't work.

In the PropertyHandler::ProcessPropertyActivate function, the processing for DIRECT mode is being skipped. This is because DIRECT=0 as defined in src/protocol/commands.proto#L51, so !entry->composition_mode is evaluated as true.
As a result, while the DIRECT menu item exists, it is not linked to the actual processing that should be executed for DIRECT.
@hiroyuki-komatsu hiroyuki-komatsu merged commit ff97bed into google:master Sep 17, 2024
1 check passed
@hiroyuki-komatsu
Copy link
Collaborator

We have merged your PR.
Thank you for your contribution!

hiroyuki-komatsu added a commit that referenced this pull request Oct 10, 2024
2.30.5595 → 2.30.5618

Conversion
* Updated zip code entries (#1063).
* Updated word entries (#1068, #1069)

Bug fix
* Linux: Enabled switching to the DIRECT mode from the menu (#1061)
* Linux: Enabled switching modes with Super+Space in Wayland (#853, #1059)
* macOS: Fixed the limitation of mouse clicking on the renderer on macOS 15 (120bd93)
* Windows: Fixed the setting of Omaha updater for the GoogleJapaneseInput build (#1072)

Build
* Android: Switched the Bazel rules from WORKSPACE to Bzlmod (#1002)
* Android: Updated the Docker build environment
* Linux: Update the build environment: Ubuntu 22.04 → 24.04 (#924)
* macOS / Windows: Updated the Qt version: 6.7.2 → 6.7.3 (#1065)
* Windows: Supported Bazel build (#948)
* Windows: Updated the Wix version: 4.0.5 → 5.0.2 (#1070)

Code
* Performed code refactoring

PiperOrigin-RevId: 684295272
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