Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 5663)
+++ /CKEditor/trunk/CHANGES.html	(revision 5664)
@@ -55,4 +55,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/5736">#5736</a> : Improved the text generated for mailto: links if no text was selected.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4779">#4779</a> : Adjust resize_minWidth and Height if smaller than actual dimensions.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/5687">#5687</a> : Navigation through colors is now compatible with RTL.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/colorbutton/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/colorbutton/plugin.js	(revision 5663)
+++ /CKEditor/trunk/_source/plugins/colorbutton/plugin.js	(revision 5664)
@@ -43,8 +43,9 @@
 
 						var keys = block.keys;
-						keys[ 39 ]	= 'next';					// ARROW-RIGHT
+						var rtl = editor.lang.dir == 'rtl';
+						keys[ rtl ? 37 : 39 ]	= 'next';					// ARROW-RIGHT
 						keys[ 40 ]	= 'next';					// ARROW-DOWN
 						keys[ 9 ]	= 'next';					// TAB
-						keys[ 37 ]	= 'prev';					// ARROW-LEFT
+						keys[ rtl ? 39 : 37 ]	= 'prev';					// ARROW-LEFT
 						keys[ 38 ]	= 'prev';					// ARROW-UP
 						keys[ CKEDITOR.SHIFT + 9 ]	= 'prev';	// SHIFT + TAB
