文本框内容失去焦点时是否可以规范化?

编程入门 行业动态 更新时间:2024-10-15 06:19:57
本文介绍了文本框内容失去焦点时是否可以规范化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我收到了一些要求,要求在用户将焦点更改到同一数据输入表单上的另一个控件时对文本框内容进行规范化.标准化示例:

I have received requirements that ask to normalize text box content when the user changes the focus to another control on the same data input form. Example normalizations:

输入开始和结束处的空白被修剪如果文本框为空且无效,则将文本框的内容替换为默认值

我有一种感觉,这不符合良好的 GUI 设计.我已阅读 Windows UX 文本框指南,但我没有立即查找任何相关规则.

I have a feeling that this is not in line with good GUI design. I have read the Windows UX Guidelines for text boxes but I did not immediately find any relevant rules.

以这种方式规范化文本框内容是否可以接受?

Is normalizing text box content in this way acceptable?

推荐答案

我以前肯定见过这个(例子现在我一无所知)但我个人不喜欢 UI 更改我的输入时它.如果 UI 足够智能,可以更改我对我的输入,那么它应该按原样接受它并在需要处理时更改值.

I have definitely seen this before (examples elude me right now) but I personally don't like it when the UI changes my input. If the UI is smart enough to change my input on me then it should accept it as is and change the value when it needs to process it.

当输入自动发生变化时,您现在会强迫用户停下来问问自己为什么会发生变化,他们是否做错了什么,或者应用程序是否有错误.不要让用户思考!

When the input changes auto-magically you are now forcing the user to stop and ask themselves why it changed and if they did something wrong or if the application has an error. Don't make the user think!

这篇关于文本框内容失去焦点时是否可以规范化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 20:42:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1400334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   焦点   内容

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!