Fix Hotkeys malfunction after leaving text field with no input using IME(Chinese/Japanese/Korean) Ref T93421 #93986

Closed
opened 2021-12-12 08:59:44 +01:00 by Takahiro Shizuki · 5 comments

This is a fail creating a differental D13551.

Ref #93421

This patch fixes about the bug affected by D11929.

Summary:
In Blender v3.0 for Windows, Hot keys are not functional when a user click 3D viewport after inputting no text on text edit with IME enabled.

Reason:

  • If a user inputed no text on text edit and click 3D viewport, IME is not closed. (If a user inputed some text, IME is closed.)
  • By D11929, When IME is opened, a key event is forwarded to IME.

This bug is happen by aboves.

Approach:

  • modifying to become same to v2.92's behavior.
Note: The Behavior per blender version:

    click a text edit, switch to IME On (manually or automatically), inputting some letters, click 3D viewport:
            2.92: After above, IME Off automatically and hotkey is functional.
                After using hotkey, click a text edit and IME switch should be On.
            3.0 (Released): After above, IME Off automatically and hotkey is functional.
                After using hotkey, click a text edit and IME switch should be On.
        click a text edit, switch to IME On (manually or automatically), click 3D viewport:
            2.92: After above, IME is not changed and hotkey is functional (IME word conversion list will be popup, inputting is continue on IME).
                After using hotkey, click a text edit and IME switch should be not changed (IME On).
            3.0 (Released): After above, IME is not change and some hotkey is NOT functional (IME word conversion list will be popup, inputting is continue on IME).
                And, click a text edit and IME switch should be not changed (IME On).

The Behavior of a fixing:

    click a text edit, switch to IME On (manually or automatically), inputting some letters, click 3D viewport:
        After above, IME Off automatically and hotkey is functional.
            After using hotkey, click a text edit and IME switch should be On.

    click a text edit, switch to IME On (manually or automatically), click 3D viewport:
        After above, IME Off automatically and hotkey is functional.
            After using hotkey, click a text edit and IME switch should be On.

#93421-patch-20211212.diff

# This is a fail creating a differental [D13551](https://archive.blender.org/developer/D13551). Ref #93421 This patch fixes about the bug affected by [D11929](https://archive.blender.org/developer/D11929). Summary: In Blender v3.0 for Windows, Hot keys are not functional when a user click 3D viewport after inputting no text on text edit with IME enabled. Reason: - If a user inputed no text on text edit and click 3D viewport, IME is not closed. (If a user inputed some text, IME is closed.) - By [D11929](https://archive.blender.org/developer/D11929), When IME is opened, a key event is forwarded to IME. This bug is happen by aboves. Approach: - modifying to become same to v2.92's behavior. ``` Note: The Behavior per blender version: click a text edit, switch to IME On (manually or automatically), inputting some letters, click 3D viewport: 2.92: After above, IME Off automatically and hotkey is functional. After using hotkey, click a text edit and IME switch should be On. 3.0 (Released): After above, IME Off automatically and hotkey is functional. After using hotkey, click a text edit and IME switch should be On. click a text edit, switch to IME On (manually or automatically), click 3D viewport: 2.92: After above, IME is not changed and hotkey is functional (IME word conversion list will be popup, inputting is continue on IME). After using hotkey, click a text edit and IME switch should be not changed (IME On). 3.0 (Released): After above, IME is not change and some hotkey is NOT functional (IME word conversion list will be popup, inputting is continue on IME). And, click a text edit and IME switch should be not changed (IME On). The Behavior of a fixing: click a text edit, switch to IME On (manually or automatically), inputting some letters, click 3D viewport: After above, IME Off automatically and hotkey is functional. After using hotkey, click a text edit and IME switch should be On. click a text edit, switch to IME On (manually or automatically), click 3D viewport: After above, IME Off automatically and hotkey is functional. After using hotkey, click a text edit and IME switch should be On. ``` [#93421-patch-20211212.diff](https://archive.blender.org/developer/F12733133/T93421-patch-20211212.diff)
Author
Member

Added subscriber: @sntulix

Added subscriber: @sntulix
Author
Member

Added subscribers: @PrettyFireNOI7, @NXSK, @iss, @isshak, @Eary, @a374833443, @Harley, @lictex_1

Added subscribers: @PrettyFireNOI7, @NXSK, @iss, @isshak, @Eary, @a374833443, @Harley, @lictex_1
Author
Member

Sorry, This is the task, not differental. I close here.

Sorry, This is the task, not differental. I close here.
Author
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Author
Member

Removed subscribers: @lictex_1, @Harley, @a374833443, @Eary, @isshak, @iss, @NXSK, @PrettyFireNOI7, @sntulix

Removed subscribers: @lictex_1, @Harley, @a374833443, @Eary, @isshak, @iss, @NXSK, @PrettyFireNOI7, @sntulix
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#93986
No description provided.