(isEmpty)
| 1944 | }); |
| 1945 | |
| 1946 | function resetSelection(isEmpty) { |
| 1947 | if (inComposition) |
| 1948 | return; |
| 1949 | inComposition = true; |
| 1950 | |
| 1951 | if (inputHandler) { |
| 1952 | selectionStart = 0; |
| 1953 | selectionEnd = isEmpty ? 0 : text.value.length - 1; |
| 1954 | } else { |
| 1955 | var selectionStart = isEmpty ? 2 : 1; |
| 1956 | var selectionEnd = 2; |
| 1957 | } |
| 1958 | try { |
| 1959 | text.setSelectionRange(selectionStart, selectionEnd); |
| 1960 | } catch(e){} |
| 1961 | |
| 1962 | inComposition = false; |
| 1963 | } |
| 1964 | |
| 1965 | function resetValue() { |
| 1966 | if (inComposition) |