OSX: readd ctrl-a for 'select all' in text(-boxes) against my own conviction for...
authorJens Verwiebe <info@jensverwiebe.de>
Wed, 2 Oct 2013 16:09:09 +0000 (16:09 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Wed, 2 Oct 2013 16:09:09 +0000 (16:09 +0000)
source/blender/editors/interface/interface_handlers.c

index 3ee380fa46bceec39dd23c00ab82bb1fd02bd879..2d7a86721d99318ef66301a0bf84cc19ff1000a0 100644 (file)
@@ -2230,8 +2230,8 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle
                                /* Ctrl + A: Select all */
 #if !defined(__APPLE__)
                                if (event->ctrl && !(event->alt || event->shift || event->oskey)) {
-#else
-                               if (event->oskey && !(event->alt || event->shift || event->ctrl)) { // OSX conformity
+#else                  /* OSX uses cmd-a systemwide, so add it */
+                               if ((event->oskey && !(event->alt || event->shift || event->ctrl)) || (event->ctrl && !(event->alt || event->shift || event->oskey))) {
 #endif
                                        ui_textedit_move(but, data, STRCUR_DIR_PREV,
                                                         false, STRCUR_JUMP_ALL);