[pve-devel] [PATCH v2 manager] www: monitor: support page up/down

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Apr 11 14:42:20 CEST 2016


to scroll the textbox while keeping focus in the inputbox
---

Fine, without home/end :p

(Although adding complete shell/emacs key handling would be even nicer)

 www/manager6/qemu/Monitor.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/manager6/qemu/Monitor.js b/www/manager6/qemu/Monitor.js
index cd8e6ec..8ceb724 100644
--- a/www/manager6/qemu/Monitor.js
+++ b/www/manager6/qemu/Monitor.js
@@ -100,6 +100,10 @@ Ext.define('PVE.qemu.Monitor', {
 				var cmd = f.getValue();
 				f.setValue('');
 				executeCmd(cmd);
+			    } else if (e.getKey() === e.PAGE_UP) {
+				textbox.scrollBy(0, -0.9*textbox.getHeight(), false);
+			    } else if (e.getKey() === e.PAGE_DOWN) {
+				textbox.scrollBy(0, 0.9*textbox.getHeight(), false);
 			    }
 			}
 		    }
-- 
2.1.4





More information about the pve-devel mailing list