mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Add `escape_navigates_to_default_view` as a bool setting in UserBaseSettings model and implement it as a checkbox that toggles the hotkey implementation of escape to the default view in the advanced user display settings. With /help/ documentation edits from Alya Abbott. Fixes #20043.
		
			
				
	
	
		
			24 lines
		
	
	
		
			622 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			622 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 3.2.8 on 2021-10-25 12:12
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ("zerver", "0368_alter_realmfilter_url_format_string"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AddField(
 | 
						|
            model_name="realmuserdefault",
 | 
						|
            name="escape_navigates_to_default_view",
 | 
						|
            field=models.BooleanField(default=True),
 | 
						|
        ),
 | 
						|
        migrations.AddField(
 | 
						|
            model_name="userprofile",
 | 
						|
            name="escape_navigates_to_default_view",
 | 
						|
            field=models.BooleanField(default=True),
 | 
						|
        ),
 | 
						|
    ]
 |