mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
Add Alt+Z shortcut to toggle word wrap #1487
Introduced a keyboard shortcut (Alt+Z) to toggle the WordWrap property in the TextViewerPanel for improved usability.
This commit is contained in:
@@ -124,6 +124,13 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
else if (Keyboard.IsKeyDown(Key.LeftShift))
|
||||
FlowDirection = System.Windows.FlowDirection.LeftToRight;
|
||||
}
|
||||
else if (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt))
|
||||
{
|
||||
if (Keyboard.IsKeyDown(Key.Z))
|
||||
{
|
||||
WordWrap = !WordWrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class TruncateLongLines : VisualLineElementGenerator
|
||||
|
Reference in New Issue
Block a user