mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 14:35:48 +01:00
beep if trying to delete the last tab which is already an empty tab
This commit is contained in:
@@ -748,11 +748,13 @@ function Events() //{{{
|
||||
|
||||
if (key != "<Esc>" && key != "<C-[>")
|
||||
{
|
||||
stop = false; // command was not a vimperator command, maybe it is a firefox command
|
||||
// allow key to be passed to firefox if we can't handle it
|
||||
stop = false;
|
||||
|
||||
// TODO: see if this check is needed or are all motion commands already mapped in these modes?
|
||||
if (vimperator.mode != vimperator.modes.INSERT && vimperator.mode != vimperator.modes.COMMAND_LINE)
|
||||
vimperator.beep();
|
||||
if (vimperator.mode != vimperator.modes.INSERT &&
|
||||
vimperator.mode != vimperator.modes.COMMAND_LINE)
|
||||
vimperator.beep();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user