http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99472
Revision: 99472
Author: inez
Date: 2011-10-11 12:35:03 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
Basic support for moving cursor up and down with keyboard
Modified Paths:
--------------
trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js
Modified: trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js 2011-10-11
10:44:31 UTC (rev 99471)
+++ trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js 2011-10-11
12:35:03 UTC (rev 99472)
@@ -278,6 +278,16 @@
case 'right':
this.showCursor( this.cursor.offset + 1 );
break;
+ case 'up':
+ var position = this.documentView.getRenderedPosition(
this.cursor.offset );
+ position.top--;
+ this.showCursor(
this.documentView.getOffsetFromPosition( position ) );
+ break;
+ case 'down':
+ var position = this.documentView.getRenderedPosition(
this.cursor.offset );
+ position.top = position.bottom + 1;
+ this.showCursor(
this.documentView.getOffsetFromPosition( position ) );
+ break;
default:
break;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs