Merge pull request #14726 from Bakke/feature/console-hotkeys
Console: ctrl+l clear line and ctrl+u clear console
This commit is contained in:
commit
c74f124bf9
@ -625,6 +625,7 @@ var PMA_consoleInput = {
|
||||
* @return void
|
||||
*/
|
||||
_keydown: function (event) {
|
||||
// Execute command
|
||||
if (PMA_console.config.EnterExecutes) {
|
||||
// Enter, but not in combination with Shift (which writes a new line).
|
||||
if (!event.shiftKey && event.keyCode === 13) {
|
||||
@ -636,6 +637,14 @@ var PMA_consoleInput = {
|
||||
PMA_consoleInput.execute();
|
||||
}
|
||||
}
|
||||
// Clear line
|
||||
if (event.ctrlKey && event.keyCode === 76) {
|
||||
PMA_consoleInput.clear();
|
||||
}
|
||||
// Clear console
|
||||
if (event.ctrlKey && event.keyCode === 85) {
|
||||
PMA_consoleMessages.clear();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Used for send text to PMA_console.execute()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user