mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix alternative paste
This commit is contained in:
		
							parent
							
								
									33b2b05792
								
							
						
					
					
						commit
						414c7d120f
					
				
					 3 changed files with 23 additions and 1 deletions
				
			
		|  | @ -126,6 +126,7 @@ button { | |||
|     border: none; | ||||
|     border-radius: 5px; | ||||
|     padding: 8px; | ||||
|     margin-top: 10px; | ||||
|     transition: 0.17s ease; | ||||
| } | ||||
| button:hover { | ||||
|  | @ -238,7 +239,7 @@ select { | |||
|     outline: none !important; | ||||
| } | ||||
| .acTheme { | ||||
|     height: 14em !important; | ||||
|     height: 15em !important; | ||||
| } | ||||
| .acCSP { | ||||
|     height: 10em !important; | ||||
|  |  | |||
							
								
								
									
										13
									
								
								src/menu.ts
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/menu.ts
									
										
									
									
									
								
							|  | @ -20,10 +20,23 @@ export async function setMenu() { | |||
|                 } | ||||
|             }) | ||||
|         }) | ||||
|         mainWindow.on("show", function () { | ||||
|             console.log("[Window state manager] Show") | ||||
|             mainWindow.focus() | ||||
|             globalShortcut.register("CmdOrCtrl+V", function () { | ||||
|                 if (mainWindow.isFocused()) { | ||||
|                     paste(mainWindow.webContents) | ||||
|                 } | ||||
|             }) | ||||
|         }) | ||||
|         mainWindow.on("blur", function () { | ||||
|             console.log("[Window state manager] Defocus") | ||||
|             globalShortcut.unregister("CmdOrCtrl+V") | ||||
|         }) | ||||
|         mainWindow.on("hide", function () { | ||||
|             console.log("[Window state manager] Hide") | ||||
|             globalShortcut.unregister("CmdOrCtrl+V") | ||||
|         }) | ||||
|     } | ||||
|     var template: Electron.MenuItemConstructorOptions[] = [{ | ||||
|         label: "ArmCord", | ||||
|  |  | |||
|  | @ -163,6 +163,14 @@ | |||
|         </div> | ||||
|         <br /> | ||||
|         <button id="settings-save" class="center">Save Settings</button> | ||||
|         <br /> | ||||
|         <button id="settings-pluginsFolder" class="center">Open plugins folder</button> | ||||
|         <br /> | ||||
|         <button id="settings-themeFolder" class="center">Open themes folder</button> | ||||
|         <br /> | ||||
|         <button id="settings-storageFolder" class="center">Open storage folder</button> | ||||
|         <br /> | ||||
|         <button id="settings-copyDebugInfo" class="center">Copy debug info</button> | ||||
|     </body> | ||||
|     <script> | ||||
|         async function loadLang() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue