mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
TerminalDisplay: improve middle mouse click paste action.
UIAbstractTableView: Improved auto columns width. ecode: Improving plugins structure. New linters and formatters json config format.
This commit is contained in:
@@ -798,7 +798,7 @@ void TerminalDisplay::onMouseDown( const Vector2i& pos, const Uint32& flags ) {
|
||||
if ( !mAlreadyClickedMButton ) {
|
||||
mAlreadyClickedMButton = true;
|
||||
auto selection = mTerminal->getSelection();
|
||||
if ( !selection.empty() ) {
|
||||
if ( !selection.empty() && selection != "\n" ) {
|
||||
for ( auto& chr : selection )
|
||||
onTextInput( chr );
|
||||
} else {
|
||||
|
||||
@@ -92,7 +92,6 @@ UITerminal::UITerminal( const std::shared_ptr<TerminalDisplay>& terminalDisplay
|
||||
[&] { mTerm->action( TerminalShortcutAction::FONTSIZE_SHRINK ); } );
|
||||
setCommand( "terminal-paste", [&] { mTerm->action( TerminalShortcutAction::PASTE ); } );
|
||||
setCommand( "terminal-copy", [&] { mTerm->action( TerminalShortcutAction::COPY ); } );
|
||||
setCommand( "terminal-paste", [&] { mTerm->action( TerminalShortcutAction::PASTE ); } );
|
||||
setCommand( "terminal-open-link",
|
||||
[&] { Engine::instance()->openURI( mTerm->getTerminal()->getSelection() ); } );
|
||||
subscribeScheduledUpdate();
|
||||
|
||||
Reference in New Issue
Block a user