Skip to content

Conversation

@Fuzzbawls
Copy link
Collaborator

Alternative to #1585 that leaves the wording unchanged, but adds key-combo recognition to the settingsconsolewidget the clear the history as how the initial help text describes.

Adjust the settingsconsolewidget event filter to explicitly recognize
the key combo for clearing the console.

fixes #1213 which was actually not adequately resolved in #1499

@Fuzzbawls Fuzzbawls added this to the 4.2.0 milestone Jul 11, 2020
@Fuzzbawls Fuzzbawls self-assigned this Jul 11, 2020
@random-zebra
Copy link

Mhm... why the functional change?
Ctrl+L (as long as the "minus" button) was supposed to clear only the screen, not the command history. Now it clears both of them.
Wouldn't just

if (mod == Qt::ControlModifier && key == Qt::Key_L)
    clear(false);

do the trick?

@Fuzzbawls
Copy link
Collaborator Author

I felt it better to upkeep the behavior of the external console dialogue window, so that the behavior of the two console areas are exactly the same.

@random-zebra
Copy link

Then it's the other one that should be updated, in my opinion.
The help message:

Use up and down arrows to navigate history, and Ctrl-L to clear screen.

only mentions the screen, does not say "command history".
And, as a user, I would personally prefer to retain the ability to navigate my previous commands with the arrows, after clearing the screen.

@Fuzzbawls Fuzzbawls force-pushed the 2020_kb-clear-console branch from afe7d3b to a3de4ea Compare July 11, 2020 21:42
@Fuzzbawls
Copy link
Collaborator Author

removed the behavioral change and simplified to just recognize the key command

Adjust the settingsconsolewidget event filter to explicitely recognize
the key combo for clearing the console.
@Fuzzbawls Fuzzbawls force-pushed the 2020_kb-clear-console branch from a3de4ea to ff9e3d8 Compare July 11, 2020 21:54
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested ACK ff9e3d8

@random-zebra random-zebra added the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Jul 11, 2020
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK ff9e3d8

@random-zebra random-zebra merged commit fda84ee into PIVX-Project:master Jul 14, 2020
Fuzzbawls added a commit to Fuzzbawls/PIVX that referenced this pull request Jul 22, 2020
Adjust the settingsconsolewidget event filter to explicitely recognize
the key combo for clearing the console.

Github-Pull: PIVX-Project#1744
Rebased-From: ff9e3d8
furszy added a commit that referenced this pull request Jul 24, 2020
dd22385 [GUI] Update translations from transifex (Fuzzbawls)
919e060 Solving old, not loaded at startup, transactions notification issue. (furszy)
943d84b NU name words separated by underscore instead of white space. (furszy)
fc042f1 Fixing UpgradeIndex position issue. (furszy)
531673c Customize network upgrades activation height for regtest at the startup. (furszy)
1337685 Sapling activation height for regtest (furszy)
15b1052 Miner: Unused reserveKey cleanup (furszy)
566b6fc [GUI] Load persisted transaction filter/sort during start (V3) (Mrs-X)
5d22583 [GUI] Recognize key event for clearing console (Fuzzbawls)
77880e0 GUI: Settings console message moved to read only. (furszy)
6b63591 options model unused signals cleanup (furszy)
b9e3859 GUI: Fixing settings display lang initialization (furszy)
b434cbf Transaction primitive unused methods cleanup. (furszy)
7f9037f missing validation_zerocoin_legacy added to CMakeLists.txt (furszy)
22bfc12 Move-only: ATMP zerocoin check moved to its own legacy file. (furszy)
24d9ac4 Move-only: DataBaseAccChecksum to zerocoin validation legacy. (furszy)
fb2993d Move-only: Move Zerocoin tx disconnection from DisconnectBlock to its own legacy file method. (furszy)
eaacd29 Wallet::AddToWallet if walletdb is null, create one and write the tx. (furszy)
609407d Split CWallet::AddToWallet into AddToWallet and LoadToWallet. (furszy)
9aacb38 Prevent multiple calls to CWallet::AvailableCoins (furszy)
c0e9b13 Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDisk (furszy)

Pull request description:

  backports the following PRs that have been merged since the `4.2` branch-off:

  #1717
  #1733
  #1736
  #1742
  #1741
  #1744
  #1287
  #1751
  #1747
  #1749
  #1763

ACKs for top commit:
  furszy:
    utACK dd22385 , ready for 4.2 :) .

Tree-SHA512: 38dd47320b8a7de77879240c36dec7588671fc09bc7d4f0be573fb6a33d6d243d4adbf4451bd4b4da9c046fab058c1cb0eb2ec2d97052b4d1171ac959ae5a71f
@Fuzzbawls Fuzzbawls removed the Needs Backport Placeholder tag for anything needing a backport to prior version branches label Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CTRL + L is not working to clear the console history

3 participants