Support select all (ctrl/metakey + a) on mac

This commit is contained in:
Inez Korczynski 2011-11-28 23:54:22 +00:00
parent 7c9140d4b4
commit 77486cf8f2

View file

@ -427,7 +427,7 @@ es.SurfaceView.prototype.onKeyDown = function( e ) {
// a (select all)
case 65:
if ( e.ctrlKey ) {
if ( e.metaKey || e.ctrlKey ) {
this.model.select( new es.Range(
this.model.getDocument().getRelativeContentOffset( 0, 1 ),
this.model.getDocument().getRelativeContentOffset(