From: Weigang on
I have got a very strange keyboard input error today. All keys are somehow "relocated" by Matlab!

One I type Matlab reads
"a" "u",
"s" "i".
"d" "o"
"f" "p"

and so on!
From: Steven Lord on

"Weigang " <wanweigang(a)gmail.com> wrote in message
news:huj5qg$mfs$1(a)fred.mathworks.com...
>I have got a very strange keyboard input error today. All keys are somehow
>"relocated" by Matlab!
> One I type Matlab reads "a" "u", "s"
> "i".
> "d" "o"
> "f" "p"
>
> and so on!

Do you just see this behavior in MATLAB or across all applications? If the
latter, it sounds like you somehow switched your keyboard layout -- what OS
are you using? If you're using Windows, use the first few steps in this
document to determine which keyboard layout you're using and reset it to the
default if necessary.

http://support.microsoft.com/kb/306560

For Mac, look at:

http://www.macosxhints.com/article.php?story=20060601175751872

For Linux, I'm not sure if the instructions are the same across all flavors,
so I suggest you search using $YOUR_FAVORITE_SEARCH_ENGINE for "change
keyboard layout" followed by the name of your flavor.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: Weigang on
Steven,

Thanks!

The OS is Ubuntu linux and I only see this with Matlab. Matlab has been working well before. The problem might be caused by an update of ubuntu.

"Steven Lord" <slord(a)mathworks.com> wrote in message <huj9qe$n59$1(a)fred.mathworks.com>...
>
> "Weigang " <wanweigang(a)gmail.com> wrote in message
> news:huj5qg$mfs$1(a)fred.mathworks.com...
> >I have got a very strange keyboard input error today. All keys are somehow
> >"relocated" by Matlab!
> > One I type Matlab reads "a" "u", "s"
> > "i".
> > "d" "o"
> > "f" "p"
> >
> > and so on!
>
> Do you just see this behavior in MATLAB or across all applications? If the
> latter, it sounds like you somehow switched your keyboard layout -- what OS
> are you using? If you're using Windows, use the first few steps in this
> document to determine which keyboard layout you're using and reset it to the
> default if necessary.
>
> http://support.microsoft.com/kb/306560
>
> For Mac, look at:
>
> http://www.macosxhints.com/article.php?story=20060601175751872
>
> For Linux, I'm not sure if the instructions are the same across all flavors,
> so I suggest you search using $YOUR_FAVORITE_SEARCH_ENGINE for "change
> keyboard layout" followed by the name of your flavor.
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
>
From: Robert on
"Weigang " <wanweigang(a)gmail.com> wrote in message <hujb9c$27t$1(a)fred.mathworks.com>...
> Steven,
>
> Thanks!
>
> The OS is Ubuntu linux and I only see this with Matlab. Matlab has been working well before. The problem might be caused by an update of ubuntu.
>
Have you updated the java vm used with matlab? matlab makes heavy use of java's jre classes when parsing keyboard input and changing java versions can lead to unexpected behaviour (or at least it did in the past). Maybe you try to return to your recent java installation.

Cheers,
Robert
From: Weigang on
I figured out the problem. It is caused by ibus, an input program. Matlab works fine with ibus closed. Thank you guys!

Weigang

"Robert " <notrust(a)lummert.net> wrote in message <hujcpk$dl1$1(a)fred.mathworks.com>...
> "Weigang " <wanweigang(a)gmail.com> wrote in message <hujb9c$27t$1(a)fred.mathworks.com>...
> > Steven,
> >
> > Thanks!
> >
> > The OS is Ubuntu linux and I only see this with Matlab. Matlab has been working well before. The problem might be caused by an update of ubuntu.
> >
> Have you updated the java vm used with matlab? matlab makes heavy use of java's jre classes when parsing keyboard input and changing java versions can lead to unexpected behaviour (or at least it did in the past). Maybe you try to return to your recent java installation.
>
> Cheers,
> Robert