Can't input '. ' in Transform input box (when using IME) #93626
Labels
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
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93626
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system Win 10:
Graphics card:
Blender Version
version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash:
f1cca30557
, type: releasebuild date: 2021-12-02, 18:49:35
platform: 'Windows-10-10.0.19041-SP0'
Short description of error
I want to modify object's scale, and want to input scale value "0.001" but I can't input '.' in the input box
Exact steps for others to reproduce the error
open blender. select anything,then do modify operation ,see attached image.
![9B%8N`CZOWZJ]NS6GVXWVGY.png](https://archive.blender.org/developer/F12688210/9B_8N_CZOWZJ_NS6GVXWVGY.png)
Added subscriber: @maskerman
Added subscriber: @deadpin
Changed status from 'Needs Triage' to: 'Needs User Info'
I'm not able to reproduce the problem here. Does this still occur if you try to do the following: File -> Defaults -> Load Factory Settings? Are you using a particular language or keyboard layout?
It seems IME will make things worse. If use english layout, It seems OK .
Can't input '. ' in Transform input box.to Can't input '. ' in Transform input box (when using IME)Changed status from 'Needs User Info' to: 'Needs Triage'
Added subscribers: @sntulix, @hzuika
If you add information about the type of IME (Microsoft IME?, Google IME?) and the language (Chinese? Japanese? Korean?), it will be easier to reproduce the problem.
@sntulix Do you know the cause of that bug?
Hi. @hzuika
I don’t know it yet.
By the way, I will do a task (https://developer.blender.org/T93421#1264170).
It’s approach may be not conflict with here, but I tell it as FYI.
Added subscriber: @lictex_1
I reproduce this with Microsoft Chinese IME, maybe.
a reproducing capture by ffmpeg. (ffmpeg.exe -offset_x 1360 -offset_y 0 -video_size 1200x1600 -framerate 30 -f gdigrab -i desktop -vcodec libx264 -pix_fmt yuv420p desktop.mp4)
desktop.mp4
"." key's define in windows: code 190, 0xBE, VK_OEM_PERIOD "." key [.>]
Added subscriber: @PrettyFireNOI7
Hi.
I am checking this.
About {key .} key code in Microsoft IME Pinyin.
Case when inputting {key .} key,
Case when inputting {key 0} {key .} {key 0} keys,
Shoud I do modify the function of handling Chinese letters at GHOST_ImeWin32::IsImeKeyEvent() like below?
Added subscriber: @mano-wii
@sntulix, it takes someone with experience in this to review the suggested change (if you're sure it's safe, i think we can skip the review).
I suggest creating a patch through https:*developer.blender.org/differential/diff/create/ and contacting one of the developers who worked in the area (Eg. https:*developer.blender.org/diffusion/B/history/master/intern/ghost/intern/GHOST_ImeWin32.cpp).
Added subscriber: @Harley
This is just a wild guess, but is it possible that this IME is converting the keypress of the period key to Chinese full stop (U+3002 ideographic full stop)? This is a period that is the same width as other characters. If this is the case we could probably treat that as a regular decimal in the numeric input code.
Edit - No. But it is a little odd
When in English I get both a KM_PRESS and KM_RELEASE of EVT_PADPERIOD. But in Chinese I am seeing only KM_RELEASE of EVT_PADPERIOD and not the KM_PRESS we act on.
@sntulix - I am seeing proper behavior in number input while in Pinyin if I remove decimal from your list of IsImeKeyEvent, like this:
One complication is that there are two different keys that can enter "." in a numerical input (the one among regular keys and the one in the numerical keypad).
With current code I can press the regular period key to enter that character in text inputs to enter a wide Chinese period - "。" into text inputs. That seems fine as I can enter a regular period in English mode? But I can't enter a decimal point into a numerical entry with either key. With regular key it enters a wide period that is not accepted as valid, while numpad key does not register (I get KM_RELEASE but no KM_PRESS).
With above change I can enter decimals into numerical entries with either key. But I can duplicated characters when entering into a text input like this ".。". This might be a compromise you find is okay.
An alternative is to pass the GHOST_TKey to IsImeKeyEvent, take "." out of that test and add an "||" for key == GHOST_kKeyPeriod. That way it is for GHOST_kKeyPeriod but not for GHOST_kKeyNumpadPeriod.
With this you can enter decimal into numerical entries with numpad decimal, and you get wide period with regular key in text inputs. The only limitation is unable to enter decimal into numerical inputs with the regular period key. Again, might be a compromise you are okay with since you can toggle to English mode.
So far not seeing any nicer solution. It would be weird to change a "。" to a "." within
ui_do_but_textedit
at WM_IME_COMPOSITE_EVENT. ie: check ime_data->str_result against 0xE3 0x80 0x82 and insert a "." instead ifELEM(but->type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER)
but would work in theory.I'll do it. There are also other many peoples!! Thank you.
: )
Hi.
I found a icon Chinese/English punctuation in Microsoft IME PinYin.
It's status value can get by ImmGetConversionStatus().
But when input "0.0", the conversion status was not changed.
This is just think that Microsoft IME PinYin has numeric mode status. Maybe, he is changed by the key "{key 0}-{key 9}" to English punctuation, and it ends by the key not "{key 0}-{key 9}" and swich to Chinese punctuation.
I'll find about this.
Although, This task may be fix by creating a status property of punctuation language at GHOST_ImeWin32.
edit
By the way, I found that when input {key 0} with Fullwidth in Microsoft IME PinYin's Fullwidth mode, I got "00". -> #94868
FYI
If it is true that Microsoft IME PinyYin has numeric mode and if ime_data->str_result gets always each key press, you may get that pressing {key .} is 'period' or 'fullstop' by check last character of ime_data->str_result.
The following is the minimum changes I could find to fix this:
IMEDecimal.diff
The change to
IsImeKeyEvent
is needed to allow numpad decimal entry. The change toui_do_but_textedit
allows using Chinese full stop as decimal. So this allows both keys to enter "." into a number, while still allowing entry of "。" into text fields.Hi. @Harley
I checked. It's good.
checked list
Okay, I think we’ll have to do this slightly differently. I’ll probably submit this as two separate patches because there are two quite different things here that should be considered separately. And I’ll probably make you, @sntulix, one of the reviewers.
This issue was referenced by
4311a32bc2
This issue was referenced by
6b7756279f
Changed status from 'Needs Triage' to: 'Resolved'