文本框内容失去焦点时是否可以规范化? [英] Is it acceptable to normalize text box content when it loses focus?

查看:31
本文介绍了文本框内容失去焦点时是否可以规范化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆