Fix home and end keys behavior for windows
This commit is contained in:
		
							parent
							
								
									fe384d80bf
								
							
						
					
					
						commit
						2bdccd3996
					
				@ -74,6 +74,8 @@ export default class Editor {
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
      'Cmd-Left': 'goLineLeftSmart',
 | 
					      'Cmd-Left': 'goLineLeftSmart',
 | 
				
			||||||
      'Cmd-Right': 'goLineRight',
 | 
					      'Cmd-Right': 'goLineRight',
 | 
				
			||||||
 | 
					      'Home': 'goLineLeftSmart',
 | 
				
			||||||
 | 
					      'End': 'goLineRight',
 | 
				
			||||||
      'Ctrl-C': function (cm) {
 | 
					      'Ctrl-C': function (cm) {
 | 
				
			||||||
        if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') {
 | 
					        if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') {
 | 
				
			||||||
          document.execCommand('copy')
 | 
					          document.execCommand('copy')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user