Signed-off-by: Christian Rotzoll <ch.rotzoll@gmail.com>
| ... | ... |
@@ -208,7 +208,7 @@ func keyToString(keyEvent *winterm.KEY_EVENT_RECORD, escapeSequence []byte) stri |
| 208 | 208 |
// formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string. |
| 209 | 209 |
func formatVirtualKey(key winterm.WORD, controlState winterm.DWORD, escapeSequence []byte) string {
|
| 210 | 210 |
shift, alt, control := getControlKeys(controlState) |
| 211 |
- modifier := getControlKeysModifier(shift, alt, control, false) |
|
| 211 |
+ modifier := getControlKeysModifier(shift, alt, control) |
|
| 212 | 212 |
|
| 213 | 213 |
if format, ok := arrowKeyMapPrefix[key]; ok {
|
| 214 | 214 |
return fmt.Sprintf(format, escapeSequence, modifier) |
| ... | ... |
@@ -230,7 +230,7 @@ func getControlKeys(controlState winterm.DWORD) (shift, alt, control bool) {
|
| 230 | 230 |
} |
| 231 | 231 |
|
| 232 | 232 |
// getControlKeysModifier returns the ANSI modifier for the given combination of control keys. |
| 233 |
-func getControlKeysModifier(shift, alt, control, meta bool) string {
|
|
| 233 |
+func getControlKeysModifier(shift, alt, control bool) string {
|
|
| 234 | 234 |
if shift && alt && control {
|
| 235 | 235 |
return ansiterm.KEY_CONTROL_PARAM_8 |
| 236 | 236 |
} |