// See the License for the specific language governing permissions and
// limitations under the License.
//
+using System;
namespace Tizen.NUI
{
/// <summary>
/// Previous action.
/// </summary>
+ [Obsolete("Deprecated in API8, will be removed in API10.")]
Previous,
/// <summary>
/// Search action.
/// <summary>
/// Unspecified action.
/// </summary>
+ [Obsolete("Deprecated in API8, will be removed in API10.")]
Unspecified,
/// <summary>
/// Nothing to do.
/// </summary>
+ [Obsolete("Deprecated in API8, will be removed in API10.")]
None
}
{
PropertyMap _outputMap = new PropertyMap();
if (_panelLayout != null) { _outputMap.Add("PANEL_LAYOUT", new PropertyValue((int)_panelLayout)); }
- if (_actionButton != null) { _outputMap.Add("BUTTON_ACTION", new PropertyValue((int)_actionButton)); }
+ if (_actionButton != null)
+ {
+ // Temporarily specify the values to match the types of ecore_imf.
+ if (_actionButton == InputMethod.ActionButtonTitleType.Search) _actionButton = (InputMethod.ActionButtonTitleType.Search - 1); // 6
+ else if (_actionButton == InputMethod.ActionButtonTitleType.Send) _actionButton = (InputMethod.ActionButtonTitleType.Send - 1); // 7
+ else if (_actionButton == InputMethod.ActionButtonTitleType.SignIn) _actionButton = (InputMethod.ActionButtonTitleType.SignIn - 1); // 8
+ else if (_actionButton == InputMethod.ActionButtonTitleType.Unspecified || _actionButton == InputMethod.ActionButtonTitleType.None) _actionButton = InputMethod.ActionButtonTitleType.Default;
+ _outputMap.Add("BUTTON_ACTION", new PropertyValue((int)_actionButton));
+ }
if (_autoCapital != null) { _outputMap.Add("AUTO_CAPITALIZE", new PropertyValue((int)_autoCapital)); }
if (_variation != null) { _outputMap.Add("VARIATION", new PropertyValue((int)_variation)); }
return _outputMap;