提交 4aeceff4 编写于 作者: C Chinmay Garde

Be consistent while using `KeyboardType` in the keyboard namespace

上级 3f4fee2d
......@@ -6,12 +6,13 @@
#include <UIKit/UIKit.h>
static inline UIKeyboardType ToUIKeyboardType(::keyboard::KeyboardType type) {
using Type = ::keyboard::KeyboardType;
switch (type) {
case keyboard::KeyboardType::TEXT:
case Type::TEXT:
return UIKeyboardTypeDefault;
case keyboard::KeyboardType::NUMBER:
case Type::NUMBER:
return UIKeyboardTypeDecimalPad;
case keyboard::KeyboardType::PHONE:
case Type::PHONE:
return UIKeyboardTypePhonePad;
default:
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册