Coder Social home page Coder Social logo

Comments (4)

Tyriar avatar Tyriar commented on June 4, 2024 1

Yes, !terminalFocus should be used here. It works with the other keybindings because of the weight property here:

https://github.com/microsoft/vscode/blob/f6786c8f2ccf01a8aae2bbc0a3ef114b44a4a845/src/vs/workbench/contrib/terminal/browser/terminalActions.ts#L1992-L1994

Extensions always override built-in keybindings though so they need more specific when clauses.

from vscode-npm-scripts.

egamma avatar egamma commented on June 4, 2024 1

Fixed in 0.3.27

from vscode-npm-scripts.

egamma avatar egamma commented on June 4, 2024

@windsonR
Version 0.3.26 has added some chording keybindings starting with CMD+K. However, there are other global chording key bindings so this should not be a new problem:
image

For me cmd+k to clear the terminal does not work even when I have all extensions disabled.
Can you please confirm whether this has ever worked for you.

Also cmd+k to clear the terminal is only active when the terminal has focus, can you confirm that you have the terminal in focus when you press cmd+k?
image

@Tyriar I could protect the new CMD+K chording keybindings with a !terminalFocus in the when clause, but I don't understand whether CMD+K clear has worked at all in the past given that there are other global chording keybindings starting with K. I must miss something.

from vscode-npm-scripts.

windsonR avatar windsonR commented on June 4, 2024

for me , it(CMD+K) only bind to Terminal: Clear
image

from vscode-npm-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.