mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	TextEditor: Add missing syntax Alt-menu shortcuts
This commit is contained in:
		
							parent
							
								
									5fedb742da
								
							
						
					
					
						commit
						e5f7032fb8
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -432,7 +432,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) | |||
|     m_layout_statusbar_action->set_checked(show_statusbar); | ||||
|     m_statusbar->set_visible(show_statusbar); | ||||
| 
 | ||||
|     m_layout_ruler_action = GUI::Action::create_checkable("Ruler", [&](auto& action) { | ||||
|     m_layout_ruler_action = GUI::Action::create_checkable("&Ruler", [&](auto& action) { | ||||
|         action.is_checked() ? m_editor->set_ruler_visible(true) : m_editor->set_ruler_visible(false); | ||||
|         Config::write_bool("TextEditor", "Layout", "ShowRuler", action.is_checked()); | ||||
|     }); | ||||
|  | @ -572,7 +572,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) | |||
|     syntax_actions.add_action(*m_js_highlight); | ||||
|     syntax_menu.add_action(*m_js_highlight); | ||||
| 
 | ||||
|     m_css_highlight = GUI::Action::create_checkable("CSS", [&](auto&) { | ||||
|     m_css_highlight = GUI::Action::create_checkable("C&SS", [&](auto&) { | ||||
|         m_editor->set_syntax_highlighter(make<Web::CSS::SyntaxHighlighter>()); | ||||
|         m_editor->update(); | ||||
|     }); | ||||
|  | @ -586,7 +586,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) | |||
|     syntax_actions.add_action(*m_html_highlight); | ||||
|     syntax_menu.add_action(*m_html_highlight); | ||||
| 
 | ||||
|     m_git_highlight = GUI::Action::create_checkable("Git Commit", [&](auto&) { | ||||
|     m_git_highlight = GUI::Action::create_checkable("Gi&t Commit", [&](auto&) { | ||||
|         m_editor->set_syntax_highlighter(make<GUI::GitCommitSyntaxHighlighter>()); | ||||
|         m_editor->update(); | ||||
|     }); | ||||
|  | @ -607,7 +607,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) | |||
|     syntax_actions.add_action(*m_ini_highlight); | ||||
|     syntax_menu.add_action(*m_ini_highlight); | ||||
| 
 | ||||
|     m_shell_highlight = GUI::Action::create_checkable("&Shell File", [&](auto&) { | ||||
|     m_shell_highlight = GUI::Action::create_checkable("Sh&ell File", [&](auto&) { | ||||
|         m_editor->set_syntax_highlighter(make<Shell::SyntaxHighlighter>()); | ||||
|         m_editor->update(); | ||||
|     }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool