mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Support ctrl-delete for delete word forward.
(On non-Macs, anyway. Mac doesn't appear to use this paradigm.) Fixes https://gitlab.com/kicad/code/kicad/-/issues/20248 (cherry picked from commit ce5469b95e32d7894a43d4bdd84514dd38ddba4c)
This commit is contained in:
parent
4df101b94e
commit
25de338bdd
@ -414,7 +414,14 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
|
|||||||
else if( aEvent.GetKeyCode() == WXK_DELETE )
|
else if( aEvent.GetKeyCode() == WXK_DELETE )
|
||||||
{
|
{
|
||||||
if( m_te->GetSelectionEnd() == m_te->GetSelectionStart() )
|
if( m_te->GetSelectionEnd() == m_te->GetSelectionStart() )
|
||||||
|
{
|
||||||
|
#ifndef __WXMAC__
|
||||||
|
if( aEvent.GetModifiers() == wxMOD_CONTROL )
|
||||||
|
m_te->WordRightExtend();
|
||||||
|
else
|
||||||
|
#endif
|
||||||
m_te->CharRightExtend();
|
m_te->CharRightExtend();
|
||||||
|
}
|
||||||
|
|
||||||
if( m_te->GetSelectionEnd() > m_te->GetSelectionStart() )
|
if( m_te->GetSelectionEnd() > m_te->GetSelectionStart() )
|
||||||
m_te->DeleteBack();
|
m_te->DeleteBack();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user