Refine alt(meta) and ctrl behaviour for emacs on macos #432
@@ -36,6 +36,10 @@ int main(int argc, char *argv[])
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    QApplication app(argc, argv);
 | 
					    QApplication app(argc, argv);
 | 
				
			||||||
 | 
					    // set application attributes
 | 
				
			||||||
 | 
					    // Has no effects, see https://bugreports.qt.io/browse/QTBUG-51293
 | 
				
			||||||
 | 
					    // app.setAttribute(Qt::AA_MacDontSwapCtrlAndMeta, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    QQmlApplicationEngine engine;
 | 
					    QQmlApplicationEngine engine;
 | 
				
			||||||
    FileIO fileIO;
 | 
					    FileIO fileIO;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,12 +101,12 @@ ApplicationWindow{
 | 
				
			|||||||
    Action{
 | 
					    Action{
 | 
				
			||||||
        id: copyAction
 | 
					        id: copyAction
 | 
				
			||||||
        text: qsTr("Copy")
 | 
					        text: qsTr("Copy")
 | 
				
			||||||
        shortcut: Qt.platform.os === "osx" ? StandardKey.Copy : "Ctrl+Shift+C"
 | 
					        shortcut: "Ctrl+Shift+C"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    Action{
 | 
					    Action{
 | 
				
			||||||
        id: pasteAction
 | 
					        id: pasteAction
 | 
				
			||||||
        text: qsTr("Paste")
 | 
					        text: qsTr("Paste")
 | 
				
			||||||
        shortcut: Qt.platform.os === "osx" ? StandardKey.Paste : "Ctrl+Shift+V"
 | 
					        shortcut: "Ctrl+Shift+V"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    Action{
 | 
					    Action{
 | 
				
			||||||
        id: zoomIn
 | 
					        id: zoomIn
 | 
				
			||||||
 
 | 
				
			|||||||
 Submodule qmltermwidget updated: 08958f7c83...214eeefc2a
									
								
							
		Reference in New Issue
	
	Block a user