mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 23:04:49 +03:00
e0ea0f46a8
refs: https://github.com/wez/wezterm/pull/2273 refs: https://github.com/wez/wezterm/issues/2253
20 lines
430 B
Markdown
20 lines
430 B
Markdown
# Nop
|
|
|
|
Causes the key press to have no effect; it behaves as though those
|
|
keys were not pressed.
|
|
|
|
If instead of this you want the key presses to pass through to
|
|
the terminal, look at [DisableDefaultAssignment](DisableDefaultAssignment.md).
|
|
|
|
```lua
|
|
local wezterm = require 'wezterm'
|
|
|
|
return {
|
|
keys = {
|
|
-- Turn off any side effects from pressing CMD-m
|
|
{ key = 'm', mods = 'CMD', action = wezterm.action.Nop },
|
|
},
|
|
}
|
|
```
|
|
|