OSX/keys: change to OSX conform cmd-a for 'select-all' in text(-boxes)
authorJens Verwiebe <info@jensverwiebe.de>
Tue, 1 Oct 2013 17:47:08 +0000 (17:47 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Tue, 1 Oct 2013 17:47:08 +0000 (17:47 +0000)
source/blender/editors/interface/interface_handlers.c

index 20e03e7dcd54f9ffcb662aa113e5b492cb3d8bbf..3ee380fa46bceec39dd23c00ab82bb1fd02bd879 100644 (file)
@@ -2228,7 +2228,11 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle
                                
                        case AKEY:
                                /* 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
+#endif
                                        ui_textedit_move(but, data, STRCUR_DIR_PREV,
                                                         false, STRCUR_JUMP_ALL);
                                        ui_textedit_move(but, data, STRCUR_DIR_NEXT,