Why do I have to type '^' plus the next character two times?

8 ビュー (過去 30 日間)
Alvaro Moure
Alvaro Moure 2019 年 1 月 15 日
コメント済み: Alvaro Moure 2019 年 1 月 15 日
When I type the char '^' in order to raise something I have to type 2 times the next char to get just one.I would like to know how can I stop this behaviour. I'm using Matlab for Mac
  1 件のコメント
Guillaume
Guillaume 2019 年 1 月 15 日
I would suspect that it's something to do with your keyboard or some particular setting in your OS. It's certainly not normal behaviour. Does the same happen in other programs?

サインインしてコメントする。

採用された回答

Stephen23
Stephen23 2019 年 1 月 15 日
編集済み: Stephen23 2019 年 1 月 15 日
This behavior is perfectly normal.
It depends solely on your language and keyboard settings. Some keyboards use the ^ key (and others) as a "dead key", which typically adds a diacritic to the following letter character:
So in order to get the ^ character itself, it is required to press it twice, basically as a kind of "escape" of that dead key (similar to escape characters used in many programming languages).
You can find a list of keyboards with dead keys here:
and I bet that your language is one of them. You might even find some other dead keys to play with.
"I would like to know how can I stop this behaviour"
The simplest solution is to change the keyboard language for one that does not use dead keys for common programming characters. Several of my colleagues program using the US English keyboard layout, entirely from memory! See also:
  1 件のコメント
Alvaro Moure
Alvaro Moure 2019 年 1 月 15 日
Thank you very much for taking the time to write this. I‘m really greatful, problem solved!

サインインしてコメントする。

その他の回答 (1 件)

madhan ravi
madhan ravi 2019 年 1 月 15 日
It's wierd better contact the mathworks support team by clicking the Contact Us button on the top right corner of this page.

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by