Added right click to fields and improved usage for password managers#197
Added right click to fields and improved usage for password managers#197StefanStrategis wants to merge 3 commits into
Conversation
…ds (for right clicks) - Added option to keep input fields active (for autofill) - Added option to right click input fields (for manual copy/paste)
| } | ||
| return instances.push(input) - 1; | ||
| }, | ||
| WebGLInputUpdateRect: function (id, canvasId, x, y, width, height, fontsize, isMultiLine, isMobile){ |
There was a problem hiding this comment.
fontsize, isMultiLine, and isMobile do not seem to be used here.
If this method is supposed to update only the rect, maybe we should remove these parameters
(or move font-size handling to another method).
| } | ||
| void IDeselectHandler.OnDeselect(BaseEventData eventData) | ||
| { | ||
| DeactivateInputField(); |
There was a problem hiding this comment.
need check keepElementActive for call DeactivateInputField()?
and need add
void ISelectHandler.OnSelect(BaseEventData eventData)
{
if (keepElementActive)
{
SyncText();
}
}
for sync text ( for issue #194
| // モバイルの場合、強制表示する | ||
| var isHidden = !(showHtmlElement || Application.isMobilePlatform); | ||
| id = WebGLInputPlugin.WebGLInputCreate(WebGLInput.CanvasId, rect.x, rect.y, rect.width, rect.height, fontSize, input.text, input.placeholder, input.lineType != LineType.SingleLine, isPassword, isHidden, Application.isMobilePlatform); | ||
| id = WebGLInputPlugin.WebGLInputCreate(WebGLInput.CanvasId, rect.x, rect.y, rect.width, rect.height, fontSize, input.text, input.placeholder, input.lineType != LineType.SingleLine, isPassword, isHidden, false, autoComplete); |
There was a problem hiding this comment.
miss for pass isMobile flag ?
changed Application.isMobilePlatform to false.
|
and have some issue. After selecting a UI Toolkit element and performing a right-click operation, |
No description provided.