command or ctrl on mac ?
今天在寫組合鍵時才發現這件有趣的事,如果有個快速鍵是 ctrl-enter,它的偵測方式在 win/mac 上是不太一樣的,而且在 browser 裏跟在 stand alone flash player 裏的行為也不太一樣,如果要更精準的判別 command 這個鍵是否按下,目前看來只能在 air 做。
下面是手冊裏關於 ctrlKey 的說明,看來很方便,在 mac 上不論按 ctrl or command 都行,但為何 google docs 就不支援這種行為呢?我每次都快按到錯亂啊~
| ctrlKey | property |
ctrlKey:Boolean [read-write]
On Windows, indicates whether the Ctrl key is active (true) or inactive (false). On Macintosh, indicates whether either the Ctrl key or the Command key is activated.
by admin


Trackback this post | Subscribe to the comments via RSS Feed