Commit 9c5bc685 authored by campaign's avatar campaign

修复文字输入

parent 5e5e4dee
...@@ -126,7 +126,7 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -126,7 +126,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
switch ( e.type ) { switch ( e.type ) {
case 'keydown': case 'keydown':
this.isTypeText = keyCode == 229 || keyCode === 0 || keyCode == 83; this.isTypeText = keyCode == 229 || keyCode === 0 ;
switch ( keyCode ) { switch ( keyCode ) {
case keys.Enter: case keys.Enter:
case keys.Tab: case keys.Tab:
...@@ -178,7 +178,6 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -178,7 +178,6 @@ Minder.Receiver = kity.createClass( 'Receiver', {
case keymap.Tab: case keymap.Tab:
case keymap.F2: case keymap.F2:
if(keymap.Enter == keyCode && this.isTypeText){ if(keymap.Enter == keyCode && this.isTypeText){
setTextToContainer(); setTextToContainer();
} }
if ( this.keydownNode === this.minderNode ) { if ( this.keydownNode === this.minderNode ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment